Commit c55c6244 by Zhao Cheng

Fix linking error caused by ddcb28a4.

parent ddcb28a4
......@@ -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));
......
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