Skip to content

Commit

Permalink
Merge pull request #3415 from dscho/release-packs-before-fetching
Browse files Browse the repository at this point in the history
git pull: release file handles to pack files before fetching
  • Loading branch information
dscho committed Nov 16, 2021
2 parents 8dec82f + bcca7f3 commit 293bf94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin/pull.c
Expand Up @@ -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
Expand Down Expand Up @@ -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;

Expand Down
1 change: 1 addition & 0 deletions commit-graph.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 293bf94

Please sign in to comment.