diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2012-01-05 19:39:40 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-01-11 12:52:12 -0800 |
commit | 97ba642bcf918de028b2e77165c5210cf3f462e5 (patch) | |
tree | 7e9e06846d27d3ddcbbf0328b97c52a943e444d0 /builtin/remote.c | |
parent | 8311158c66e0d83df950ea837fb1cb332c51f798 (diff) | |
download | git-97ba642bcf918de028b2e77165c5210cf3f462e5.tar.gz |
Fix incorrect ref namespace checknd/maint-refname-in-hierarchy-check
The reason why the trailing slash is needed is obvious. refs/stash and
HEAD are not namespace, but complete refs. Do full string compare on them.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/remote.c')
-rw-r--r-- | builtin/remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/remote.c b/builtin/remote.c index c810643815..164626b1d1 100644 --- a/builtin/remote.c +++ b/builtin/remote.c @@ -535,7 +535,7 @@ static int add_branch_for_removal(const char *refname, } /* don't delete non-remote-tracking refs */ - if (prefixcmp(refname, "refs/remotes")) { + if (prefixcmp(refname, "refs/remotes/")) { /* advise user how to delete local branches */ if (!prefixcmp(refname, "refs/heads/")) string_list_append(branches->skipped, |