diff --git a/builtin/fetch.c b/builtin/fetch.c
index 1adf6c176f31b2ece263bc1f07eee8c7e0b40098..d061e2c956123b5982024daba988776e4d8590f8 100644 (file)
--- a/builtin/fetch.c
+++ b/builtin/fetch.c
}
note[note_len] = '\0';
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);
for (i = 0; i < url_len; ++i)