From: Matthieu Moy Date: Sun, 27 Sep 2015 15:13:41 GMT Subject: [PATCH 1/2] t3203: test 'detached at' after checkout --detach Message-ID: <1443366822-1753-1-git-send-email-Matthieu.Moy@imag.fr> This currently fails: the output is 'HEAD detached at HEAD'. --- t/t3203-branch-output.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/t/t3203-branch-output.sh b/t/t3203-branch-output.sh index f51d0f3..bf24dbf 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 <