summaryrefslogtreecommitdiff
path: root/tests/status
diff options
context:
space:
mode:
Diffstat (limited to 'tests/status')
-rw-r--r--tests/status/worktree_init.c4
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);