mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 02:59:02 +08:00
gj_common: git_repository_state_cleanup cannot be called with repo = 0
This commit is contained in:
@ -636,7 +636,8 @@ cleanup:
|
|||||||
git_commit_free(head_commit);
|
git_commit_free(head_commit);
|
||||||
git_commit_free(origin_head_commit);
|
git_commit_free(origin_head_commit);
|
||||||
git_signature_free(sig);
|
git_signature_free(sig);
|
||||||
git_repository_state_cleanup(repo);
|
if (repo != 0)
|
||||||
|
git_repository_state_cleanup(repo);
|
||||||
git_index_conflict_iterator_free(conflict_iter);
|
git_index_conflict_iterator_free(conflict_iter);
|
||||||
git_index_free(index);
|
git_index_free(index);
|
||||||
git_reference_free(origin_head_ref);
|
git_reference_free(origin_head_ref);
|
||||||
|
Reference in New Issue
Block a user