Merge pull request #2837 from swisspol/set_index Allow passing a NULL index to git_repository_set_index()