Unverified Commit 99034825 by Edward Thomson Committed by GitHub

Merge pull request #6600 from libgit2/cmn/clear-graft-pointers

repository: make cleanup safe for re-use with grafts
parents 136e55f2 9d4c5505
......@@ -153,7 +153,9 @@ int git_repository__cleanup(git_repository *repo)
git_cache_clear(&repo->objects);
git_attr_cache_flush(repo);
git_grafts_free(repo->grafts);
repo->grafts = NULL;
git_grafts_free(repo->shallow_grafts);
repo->shallow_grafts = NULL;
set_config(repo, NULL);
set_index(repo, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment