summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEtienne Samson <samson.etienne@gmail.com>2018-04-10 23:49:44 +0200
committerEtienne Samson <samson.etienne@gmail.com>2018-04-10 23:50:19 +0200
commit2dc54855c8658da11ee70700da1083e28d948509 (patch)
treea90e9ac8a45c9af6e19d2e5bf4d3bb2512e9021c /tests
parent5e19a7f9d502a6adb8cabe335020eba08d821c3e (diff)
downloadlibgit2-2dc54855c8658da11ee70700da1083e28d948509.tar.gz
tests: ensure worktrees' head have owners too
Diffstat (limited to 'tests')
-rw-r--r--tests/worktree/repository.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/worktree/repository.c b/tests/worktree/repository.c
index 5c7595c64..ca56413b7 100644
--- a/tests/worktree/repository.c
+++ b/tests/worktree/repository.c
@@ -27,6 +27,7 @@ void test_worktree_repository__head(void)
cl_git_pass(git_reference_lookup(&ref, fixture.repo, "refs/heads/testrepo-worktree"));
cl_git_pass(git_repository_head_for_worktree(&head, fixture.repo, "testrepo-worktree"));
cl_assert(git_reference_cmp(ref, head) == 0);
+ cl_assert(git_reference_owner(ref) == fixture.repo);
git_reference_free(ref);
git_reference_free(head);