Commit 27242199 by Edward Thomson

Merge pull request #2837 from swisspol/set_index

Allow passing a NULL index to git_repository_set_index()
parents f483720c fa8ca519
......@@ -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);
}
......
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