diff options
author | Ungureanu Marius <marius.ungureanu@xamarin.com> | 2014-11-07 20:32:50 +0200 |
---|---|---|
committer | Ungureanu Marius <marius.ungureanu@xamarin.com> | 2014-11-07 21:34:54 +0200 |
commit | 68182085694d76b97eb747960195917df69500c8 (patch) | |
tree | 0f535ab30c389eaa54f84168bcf6e85309466e61 /tests/status | |
parent | 4e1b3b3b7186b017223b8302a51289ff92ccba25 (diff) | |
download | libgit2-68182085694d76b97eb747960195917df69500c8.tar.gz |
git_status_file now takes an exact path
This function has one output but can match multiple files, which can be
unexpected for the user, which would usually path the exact path of the
file he wants the status of.
Diffstat (limited to 'tests/status')
-rw-r--r-- | tests/status/worktree_init.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/status/worktree_init.c b/tests/status/worktree_init.c index 296c27c86..3e43c8c20 100644 --- a/tests/status/worktree_init.c +++ b/tests/status/worktree_init.c @@ -195,9 +195,7 @@ void test_status_worktree_init__bracket_in_filename(void) cl_git_pass(git_status_file(&status_flags, repo, "LICENSE\\[1\\].md")); cl_assert(status_flags == GIT_STATUS_INDEX_NEW); - error = git_status_file(&status_flags, repo, FILE_WITH_BRACKET); - cl_git_fail(error); - cl_assert_equal_i(GIT_EAMBIGUOUS, error); + cl_git_pass(git_status_file(&status_flags, repo, FILE_WITH_BRACKET)); git_index_free(index); git_repository_free(repo); |