Merge branch 'maint'
[gitweb.git] / builtin / remote.c
index 8904d4b8e0c6f2c6b3c205543bf7f870276bda22..b5645fe0ae89fc969c41aceb32e918fb0fa0d39f 100644 (file)
@@ -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,