sha1-file.c: mark more strings for translation
[gitweb.git] / t / t3204-branch-name-interpretation.sh
index 05e88f92d98a7d15db08345633cf624209ffcce2..698d9cc4f3d65754552b8ccdd46b0cb64aea09c5 100755 (executable)
@@ -120,4 +120,14 @@ test_expect_success 'delete branch named "@"' '
        expect_deleted refs/heads/@
 '
 
+test_expect_success 'checkout does not treat remote @{upstream} as a branch' '
+       git update-ref refs/remotes/origin/checkout one &&
+       git branch --set-upstream-to=origin/checkout &&
+       git update-ref refs/heads/origin/checkout two &&
+       git update-ref refs/heads/remotes/origin/checkout two &&
+
+       git checkout @{upstream} &&
+       expect_branch HEAD one
+'
+
 test_done