Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ws/request-pull-code-cleanup' into maint
[gitweb.git]
/
t
/
t1514-rev-parse-push.sh
diff --git
a/t/t1514-rev-parse-push.sh
b/t/t1514-rev-parse-push.sh
index 7214f5b33fa41fbb685e572ca24a0cb11337d251..623a32aa6e323d11267cb89af62d42c325a4dd75 100755
(executable)
--- a/
t/t1514-rev-parse-push.sh
+++ b/
t/t1514-rev-parse-push.sh
@@
-60,4
+60,10
@@
test_expect_success '@{push} with push refspecs' '
resolve topic@{push} refs/remotes/origin/magic/topic
'
+test_expect_success 'resolving @{push} fails with a detached HEAD' '
+ git checkout HEAD^0 &&
+ test_when_finished "git checkout -" &&
+ test_must_fail git rev-parse @{push}
+'
+
test_done