Merge pull request #3415 from dscho/release-packs-before-fetching

git pull: release file handles to pack files before fetching
This commit is contained in:
Johannes Schindelin
2021-09-08 10:50:49 +02:00
2 changed files with 3 additions and 0 deletions

View File

@@ -26,6 +26,7 @@
#include "wt-status.h"
#include "commit-reach.h"
#include "sequencer.h"
#include "packfile.h"
/**
* Parses the value of --rebase. If value is a false value, returns
@@ -1020,6 +1021,7 @@ int cmd_pull(int argc, const char **argv, const char *prefix)
oidclr(&rebase_fork_point);
}
close_object_store(the_repository->objects);
if (run_fetch(repo, refspecs))
return 1;

View File

@@ -713,6 +713,7 @@ static void close_commit_graph_one(struct commit_graph *g)
if (!g)
return;
clear_commit_graph_data_slab(&commit_graph_data_slab);
close_commit_graph_one(g->base_graph);
free_commit_graph(g);
}