summaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-01-29 13:18:51 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-01-29 13:18:51 -0800
commit02a20d1038d965ffaef3604f00afcce0e88abccb (patch)
tree491264573ac0dbae744e6943b831e54cfd949bf6 /log-tree.c
parentMerge branch 'jn/gitweb-unspecified-action' (diff)
parentFix incorrect ref namespace check (diff)
downloadtgif-02a20d1038d965ffaef3604f00afcce0e88abccb.tar.xz
Merge branch 'nd/maint-refname-in-hierarchy-check'
* nd/maint-refname-in-hierarchy-check: Fix incorrect ref namespace check
Diffstat (limited to 'log-tree.c')
-rw-r--r--log-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/log-tree.c b/log-tree.c
index c719a6e385..cea8756866 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -120,9 +120,9 @@ static int add_ref_decoration(const char *refname, const unsigned char *sha1, in
type = DECORATION_REF_REMOTE;
else if (!prefixcmp(refname, "refs/tags/"))
type = DECORATION_REF_TAG;
- else if (!prefixcmp(refname, "refs/stash"))
+ else if (!strcmp(refname, "refs/stash"))
type = DECORATION_REF_STASH;
- else if (!prefixcmp(refname, "HEAD"))
+ else if (!strcmp(refname, "HEAD"))
type = DECORATION_REF_HEAD;
if (!cb_data || *(int *)cb_data == DECORATE_SHORT_REFS)