Commit fa8ca519 by Pierre-Olivier Latour

Allow passing a NULL index to git_repository_set_index()

This is supported by the underlying set_index() implementation
and setting the repository index to NULL is recommended by the
git_repository_set_bare() documentation.
parent a789b361
......@@ -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