Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-01-30 01:18:51 +0400
committerJunio C Hamano <gitster@pobox.com>2012-01-30 01:18:51 +0400
commit02a20d1038d965ffaef3604f00afcce0e88abccb (patch)
tree491264573ac0dbae744e6943b831e54cfd949bf6 /builtin/remote.c
parent77cdf0f802f23d409a773bd5f8a736f50ae8baf5 (diff)
parent97ba642bcf918de028b2e77165c5210cf3f462e5 (diff)
Merge branch 'nd/maint-refname-in-hierarchy-check'
* nd/maint-refname-in-hierarchy-check: Fix incorrect ref namespace check
Diffstat (limited to 'builtin/remote.c')
-rw-r--r--builtin/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/remote.c b/builtin/remote.c
index 583eec90e0..f54a89adc7 100644
--- a/builtin/remote.c
+++ b/builtin/remote.c
@@ -534,7 +534,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,