From c55c624441944d61d379ce5d3e58b945c52c7c8b Mon Sep 17 00:00:00 2001 From: Zhao Cheng Date: Fri, 18 Jan 2013 13:22:55 +0800 Subject: [PATCH] Fix linking error caused by ddcb28a41f3774e26fc6ae0a7174a5565e4749ce. --- tests-clar/status/worktree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests-clar/status/worktree.c b/tests-clar/status/worktree.c index ead1bc734..e1fc8dff8 100644 --- a/tests-clar/status/worktree.c +++ b/tests-clar/status/worktree.c @@ -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));