diff --git a/builtin/remote.c b/builtin/remote.c
index adc456ebefce89095a3c5229d1a790719782d436..fec92bc66e41b82f929e37b1935d00d6558c34a0 100644 (file)
--- a/builtin/remote.c
+++ b/builtin/remote.c
}
/* 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,