summaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-01-29 21:18:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-01-29 21:18:51 (GMT)
commit02a20d1038d965ffaef3604f00afcce0e88abccb (patch)
tree491264573ac0dbae744e6943b831e54cfd949bf6 /log-tree.c
parent77cdf0f802f23d409a773bd5f8a736f50ae8baf5 (diff)
parent97ba642bcf918de028b2e77165c5210cf3f462e5 (diff)
downloadgit-02a20d1038d965ffaef3604f00afcce0e88abccb.zip
git-02a20d1038d965ffaef3604f00afcce0e88abccb.tar.gz
git-02a20d1038d965ffaef3604f00afcce0e88abccb.tar.bz2
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 c719a6e..cea8756 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)