fetch-pack: report missing refs even if no existing refs were received
[gitweb.git] / builtin / fetch-pack.c
index fb2a423b5199b807c04ab24e82c90c3c3fbe86b2..3d388b53e3b52be1757146de9e72ba3d81c51673 100644 (file)
@@ -1021,7 +1021,7 @@ int cmd_fetch_pack(int argc, const char **argv, const char *prefix)
                return 1;
 
        ret = !ref;
-       if (ref && sought.nr) {
+       if (sought.nr) {
                /* If the heads to pull were given, we should have
                 * consumed all of them by matching the remote.
                 * Otherwise, 'git fetch remote no-such-ref' would