Merge branch 'jc/fetch-raw-sha1'
[gitweb.git] / fetch-pack.c
index 70db64651713fbc80715e91e82206c84ebdd2fb5..cef8fde61bf4516f95ae13b05f73cb26a268f90c 100644 (file)
@@ -599,6 +599,9 @@ static int everything_local(struct fetch_pack_args *args,
        for (ref = *refs; ref; ref = ref->next) {
                struct object *o;
 
+               if (!has_sha1_file(ref->old_sha1))
+                       continue;
+
                o = parse_object(ref->old_sha1);
                if (!o)
                        continue;