Code

clone: fix up delay cloning conditions
[git.git] / builtin / fetch.c
index 8761a33b491ae8a9437d78247ef0808c0686486e..33ad3aad2c99116a237d7e7d11dab22fcf4295b1 100644 (file)
@@ -443,8 +443,7 @@ static int store_updated_refs(const char *raw_url, const char *remote_name,
                        strbuf_addf(&note, "'%s' of ", what);
                }
                fprintf(fp, "%s\t%s\t%s",
-                       sha1_to_hex(commit ? commit->object.sha1 :
-                                   rm->old_sha1),
+                       sha1_to_hex(rm->old_sha1),
                        rm->merge ? "" : "not-for-merge",
                        note.buf);
                for (i = 0; i < url_len; ++i)