X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Ffetch.c;h=d061e2c956123b5982024daba988776e4d8590f8;hb=fab47d057559301c74d6642576694fd251a3fd11;hp=1adf6c176f31b2ece263bc1f07eee8c7e0b40098;hpb=3f7d11c45421051a010690c3b9cc28bce98b8c3f;p=git.git diff --git a/builtin/fetch.c b/builtin/fetch.c index 1adf6c176..d061e2c95 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)