From: Matthieu Moy Date: Sun, 27 Sep 2015 15:13:41 +0000 (+0200) Subject: t3203: test 'detached at' after checkout --detach X-Git-Tag: v2.6.2~12^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9cb07d81b3b268dc5f88f7048f54ce51d363d2d5;p=thirdparty%2Fgit.git t3203: test 'detached at' after checkout --detach This currently fails: the output is 'HEAD detached at HEAD'. Signed-off-by: Matthieu Moy Signed-off-by: Junio C Hamano --- diff --git a/t/t3203-branch-output.sh b/t/t3203-branch-output.sh index f51d0f3cad..bf24dbf831 100755 --- a/t/t3203-branch-output.sh +++ b/t/t3203-branch-output.sh @@ -106,6 +106,19 @@ EOF test_i18ncmp expect actual ' +test_expect_failure 'git branch shows detached HEAD properly after checkout --detach' ' + git checkout master && + cat >expect <actual && + test_i18ncmp expect actual +' + test_expect_success 'git branch shows detached HEAD properly after moving' ' cat >expect <