summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7a53753)
raw | patch | inline | side by side (parent: 7a53753)
author | Daniel Barkalow <barkalow@iabervon.org> | |
Sat, 2 Feb 2008 09:37:01 +0000 (04:37 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 5 Feb 2008 04:10:07 +0000 (20:10 -0800) |
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7201-co.sh | patch | blob | history |
diff --git a/t/t7201-co.sh b/t/t7201-co.sh
index 73d8a00e2cca907e562c50c70a10c02e3c0e02ca..dbf1ace29ef8ad178a0ad8539e6bde30482ee60f 100755 (executable)
--- a/t/t7201-co.sh
+++ b/t/t7201-co.sh
fi
'
+test_expect_success 'checkout to detach HEAD with :/message' '
+
+ git checkout -f master && git clean -f &&
+ git checkout ":/Initial" &&
+ H=$(git rev-parse --verify HEAD) &&
+ M=$(git show-ref -s --verify refs/heads/master) &&
+ test "z$H" = "z$M" &&
+ if git symbolic-ref HEAD >/dev/null 2>&1
+ then
+ echo "OOPS, HEAD is still symbolic???"
+ false
+ else
+ : happy
+ fi
+'
+
test_expect_success 'checkout to detach HEAD with HEAD^0' '
git checkout -f master && git clean -f &&