From: SZEDER Gábor Date: Tue, 18 Jun 2013 02:16:57 GMT Subject: [PATCH v2 04/13] bash prompt: add a test for symbolic link symbolic refs Message-ID: <1371521826-3225-5-git-send-email-szeder@ira.uka.de> In-Reply-To: <1371521826-3225-1-git-send-email-szeder@ira.uka.de> From: SZEDER Gábor Signed-off-by: SZEDER Gábor --- t/t9903-bash-prompt.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/t/t9903-bash-prompt.sh b/t/t9903-bash-prompt.sh index 1047c664..48460ef6 100755 --- a/t/t9903-bash-prompt.sh +++ b/t/t9903-bash-prompt.sh @@ -40,6 +40,15 @@ test_expect_success 'prompt - branch name' ' test_cmp expected "$actual" ' +test_expect_success SYMLINKS 'prompt - branch name - symlink symref' ' + printf " (master)" >expected && + test_when_finished "git checkout master" && + test_config core.preferSymlinkRefs true && + git checkout master && + __git_ps1 >"$actual" && + test_cmp expected "$actual" +' + test_expect_success 'prompt - detached head' ' printf " ((%s...))" $(git log -1 --format="%h" b1^) >expected && git checkout b1^ && -- 1.8.3.1.487.g8f4672d