Skip to content

Commit 1c71541

Browse files
committed
Merge branch 'maint'
* maint: t1507: Test that branchname@{upstream} is interpreted as branch
2 parents bb79a82 + 617cf93 commit 1c71541

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/t1507-rev-parse-upstream.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ test_expect_success 'my-side@{upstream} resolves to correct full name' '
5454
test refs/remotes/origin/side = "$(full_name my-side@{u})"
5555
'
5656

57+
test_expect_success 'refs/heads/my-side@{upstream} does not resolve to my-side{upstream}' '
58+
test_must_fail full_name refs/heads/my-side@{upstream}
59+
'
60+
5761
test_expect_success 'my-side@{u} resolves to correct commit' '
5862
git checkout side &&
5963
test_commit 5 &&

0 commit comments

Comments
 (0)