fetch-pack: don't try to fetch peel values with --all
[gitweb.git] / fetch-pack.c
index 601f0779a1903a2b860412e3404e4ea8e4bce573..c85fc6aeed7409c05a2f299105eb3d68b2471ccf 100644 (file)
@@ -582,11 +582,11 @@ static void filter_refs(struct fetch_pack_args *args,
                                }
                                i++;
                        }
-               }
 
-               if (!keep && args->fetch_all &&
-                   (!args->deepen || !starts_with(ref->name, "refs/tags/")))
-                       keep = 1;
+                       if (!keep && args->fetch_all &&
+                           (!args->deepen || !starts_with(ref->name, "refs/tags/")))
+                               keep = 1;
+               }
 
                if (keep) {
                        *newtail = ref;