X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=fast-import.c;h=3ef3413e69896d45012ea94b3678959d5d2cceb0;hb=161261b12b3777bc78ef3fbe84ccf595dd195704;hp=f0e08aca70c16e9309dde87954593a76ad37b9ef;hpb=90b23e5f21e101f14da60375e4bda265a677e209;p=git.git diff --git a/fast-import.c b/fast-import.c index f0e08aca7..3ef3413e6 100644 --- a/fast-import.c +++ b/fast-import.c @@ -150,6 +150,7 @@ Format of STDIN stream: #include "refs.h" #include "csum-file.h" #include "quote.h" +#include "exec_cmd.h" #define PACK_ID_BITS 16 #define MAX_PACK_ID ((1<sha1[0] != i) break; @@ -944,6 +945,7 @@ static void end_packfile(void) { struct packed_git *old_p = pack_data, *new_p; + clear_delta_base_cache(); if (object_count) { char *idx_name; int i; @@ -2406,6 +2408,8 @@ int main(int argc, const char **argv) { unsigned int i, show_stats = 1; + git_extract_argv0_path(argv[0]); + setup_git_directory(); git_config(git_pack_config, NULL); if (!pack_compression_seen && core_compression_seen)