aboutsummaryrefslogtreecommitdiff
path: root/t/t1501-worktree.sh
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2012-04-09 15:27:56 +0200
committerJunio C Hamano <gitster@pobox.com>2012-04-10 09:25:35 -0700
commit658219f1c75e25adbe530a3b681ba3d2332caca6 (patch)
tree54dd4f9e3f1cc633dceffccd6bcb96e35fe5f09d /t/t1501-worktree.sh
parente8dde3e5f9ddb7cf95a6ff3cea6cf07c3a2db80d (diff)
downloadgit-658219f1c75e25adbe530a3b681ba3d2332caca6.tar.gz
git-658219f1c75e25adbe530a3b681ba3d2332caca6.tar.xz
rev-parse --show-prefix: add in trailing newline
Print out a trailing newline when --show-prefix is run with cwd at the top level of the tree which results in an empty prefix. Behavior is now like --show-cdup. Fixes an expected failure in t1501. Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1501-worktree.sh')
-rwxr-xr-xt/t1501-worktree.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1501-worktree.sh b/t/t1501-worktree.sh
index e661147c5..8f36aa9fc 100755
--- a/t/t1501-worktree.sh
+++ b/t/t1501-worktree.sh
@@ -68,7 +68,7 @@ test_expect_success 'inside work tree' '
)
'
-test_expect_failure 'empty prefix is actually written out' '
+test_expect_success 'empty prefix is actually written out' '
echo >expected &&
(
cd work &&