Skip to content

Commit 2dc5485

Browse files
committed
tests: ensure worktrees' head have owners too
1 parent 5e19a7f commit 2dc5485

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/worktree/repository.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ void test_worktree_repository__head(void)
2727
cl_git_pass(git_reference_lookup(&ref, fixture.repo, "refs/heads/testrepo-worktree"));
2828
cl_git_pass(git_repository_head_for_worktree(&head, fixture.repo, "testrepo-worktree"));
2929
cl_assert(git_reference_cmp(ref, head) == 0);
30+
cl_assert(git_reference_owner(ref) == fixture.repo);
3031

3132
git_reference_free(ref);
3233
git_reference_free(head);

0 commit comments

Comments
 (0)