mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-31 22:14:44 +00:00
Merge pull request #2837 from swisspol/set_index
Allow passing a NULL index to git_repository_set_index()
This commit is contained in:
commit
2724219918
@ -776,7 +776,7 @@ int git_repository_index(git_index **out, git_repository *repo)
|
||||
|
||||
void git_repository_set_index(git_repository *repo, git_index *index)
|
||||
{
|
||||
assert(repo && index);
|
||||
assert(repo);
|
||||
set_index(repo, index);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user