From 658219f1c75e25adbe530a3b681ba3d2332caca6 Mon Sep 17 00:00:00 2001 From: Ross Lagerwall Date: Mon, 9 Apr 2012 15:27:56 +0200 Subject: 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 Signed-off-by: Junio C Hamano --- t/t1501-worktree.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't') diff --git a/t/t1501-worktree.sh b/t/t1501-worktree.sh index e661147c57..8f36aa9fc4 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 && -- cgit v1.2.1