Merge pull request #1258 from zcbenz/fix_index_remove_test

Fix linking error caused by ddcb28a41f.
This commit is contained in:
Vicent Martí 2013-01-17 22:09:57 -08:00
commit 537abd4a2c

View File

@ -588,7 +588,7 @@ static void stage_and_commit(git_repository *repo, const char *path)
git_index *index;
cl_git_pass(git_repository_index(&index, repo));
cl_git_pass(git_index_add_from_workdir(index, path));
cl_git_pass(git_index_add_bypath(index, path));
cl_git_pass(git_index_write(index));
cl_git_pass(git_index_write_tree(&tree_oid, index));