From 2c3766f06adf0ba226a592939971f8ef587e54c1 Mon Sep 17 00:00:00 2001 From: Anders Melchiorsen Date: Mon, 4 Aug 2008 02:30:03 +0200 Subject: Flush output in start_async This prevents double output in case stdout is redirected. Signed-off-by: Anders Melchiorsen Signed-off-by: Junio C Hamano --- t/t5601-clone.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 't/t5601-clone.sh') diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh index 57173b4c50..a13b6f9d3d 100755 --- a/t/t5601-clone.sh +++ b/t/t5601-clone.sh @@ -31,6 +31,12 @@ test_expect_success 'clone with excess parameters (2)' ' ' +test_expect_success 'output from clone' ' + rm -fr dst && + git clone -n "file://$(pwd)/src" dst >output && + test $(grep Initialized output | wc -l) = 1 +' + test_expect_success 'clone does not keep pack' ' rm -fr dst && -- cgit v1.2.1