X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Ffetch.c;h=494a7f9976f870a28dbbbcb4196954a827f6bfdb;hb=73c6b3575bc638b7096ec913bd91193707e2265d;hp=91731b909aeb22bf8d4e366b8b92281ac0f9ac0c;hpb=92622e62145b05a159b057a4334205e6a3b07630;p=git.git diff --git a/builtin/fetch.c b/builtin/fetch.c index 91731b909..494a7f997 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -436,8 +436,7 @@ static int store_updated_refs(const char *raw_url, const char *remote_name, } 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)