Fix linking error caused by ddcb28a41f.

This commit is contained in:
Zhao Cheng 2013-01-18 13:22:55 +08:00
parent ddcb28a41f
commit c55c624441

View File

@ -588,7 +588,7 @@ static void stage_and_commit(git_repository *repo, const char *path)
git_index *index; git_index *index;
cl_git_pass(git_repository_index(&index, repo)); 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(index));
cl_git_pass(git_index_write_tree(&tree_oid, index)); cl_git_pass(git_index_write_tree(&tree_oid, index));