mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-02 14:37:30 +00:00
status: querying a bare repo returns EBAREREPO
This commit is contained in:
parent
c2e43fb1f2
commit
4fd7e8e583
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user