Commit 4fd7e8e5837b9b32a4fc76aaadf5df1b1e6a5434

nulltoken 2012-10-18T16:52:19

status: querying a bare repo returns EBAREREPO

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/tests-clar/status/worktree.c b/tests-clar/status/worktree.c
index 4f03643..fae43a1 100644
--- a/tests-clar/status/worktree.c
+++ b/tests-clar/status/worktree.c
@@ -419,10 +419,7 @@ void test_status_worktree__cannot_retrieve_the_status_of_a_bare_repository(void)
 
 	cl_git_pass(git_repository_open(&repo, cl_fixture("testrepo.git")));
 
-	error = git_status_file(&status, repo, "dummy");
-
-	cl_git_fail(error);
-	cl_assert(error != GIT_ENOTFOUND);
+	cl_assert_equal_i(GIT_EBAREREPO, git_status_file(&status, repo, "dummy"));
 
 	git_repository_free(repo);
 }