We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a53753 commit b1e9efaCopy full SHA for b1e9efa
t/t7201-co.sh
@@ -214,6 +214,22 @@ test_expect_success 'checkout to detach HEAD with branchname^' '
214
fi
215
'
216
217
+test_expect_success 'checkout to detach HEAD with :/message' '
218
+
219
+ git checkout -f master && git clean -f &&
220
+ git checkout ":/Initial" &&
221
+ H=$(git rev-parse --verify HEAD) &&
222
+ M=$(git show-ref -s --verify refs/heads/master) &&
223
+ test "z$H" = "z$M" &&
224
+ if git symbolic-ref HEAD >/dev/null 2>&1
225
+ then
226
+ echo "OOPS, HEAD is still symbolic???"
227
+ false
228
+ else
229
+ : happy
230
+ fi
231
+'
232
233
test_expect_success 'checkout to detach HEAD with HEAD^0' '
234
235
git checkout -f master && git clean -f &&
0 commit comments