Don't die in git-http-fetch when fetching packs.
[git/git.git] / http-fetch.c
index fe8cd7b..67dfb0a 100644 (file)
@@ -809,6 +809,7 @@ static int fetch_pack(struct alt_base *repo, unsigned char *sha1)
                return error("Unable to start request");
        }
 
+       target->pack_size = ftell(packfile);
        fclose(packfile);
 
        ret = move_temp_to_file(tmpfile, filename);