Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/maint-checkout-orphan-check-fix'
author
Junio C Hamano
<gitster@pobox.com>
Sat, 28 Jul 2012 04:11:33 +0000
(21:11 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Sat, 28 Jul 2012 04:11:34 +0000
(21:11 -0700)
"git checkout <branchname>" to come back from a detached HEAD state
incorrectly computed reachability of the detached HEAD, resulting in
unnecessary warnings.
* jk/maint-checkout-orphan-check-fix:
checkout: don't confuse ref and object flags
builtin/checkout.c
patch
|
blob
|
history
raw
(from parent 1:
cdd159b
)
diff --git
a/builtin/checkout.c
b/builtin/checkout.c
index 6acca75f4740e9412c418124ce791c00f7b4ba4b..d812219b30247795b6db7487329605a088057db1 100644
(file)
--- a/
builtin/checkout.c
+++ b/
builtin/checkout.c
@@
-606,7
+606,7
@@
static int add_pending_uninteresting_ref(const char *refname,
const unsigned char *sha1,
int flags, void *cb_data)
{
- add_pending_sha1(cb_data, refname, sha1,
flags |
UNINTERESTING);
+ add_pending_sha1(cb_data, refname, sha1, UNINTERESTING);
return 0;
}