X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=fetch.c;h=71c4f41a66224046d2b377b0e828f837be9e850c;hb=28423758591577828672219c1031d463701a11cc;hp=7db35f0dcc38276e32152a99b278429be955b992;hpb=22c6e1d0f76f58a425065d3e8e447b6366ccd98c;p=git.git diff --git a/fetch.c b/fetch.c index 7db35f0d..71c4f41a 100644 --- a/fetch.c +++ b/fetch.c @@ -207,6 +207,7 @@ int pull(char *target) unsigned char sha1[20]; int fd = -1; + save_commit_buffer = 0; if (write_ref && current_ref) { fd = lock_ref_sha1(write_ref, current_ref); if (fd < 0)