summaryrefslogtreecommitdiff
path: root/t/t5702-clone-options.sh
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2008-10-08 23:40:32 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2008-10-09 18:26:17 (GMT)
commit21188b1eafd3741fda0f7905dc997279a17b50ba (patch)
tree68bbf5f02d00fd354efd097fff73ec09f4d9c4b6 /t/t5702-clone-options.sh
parent23abd3f48cb217d1558fa1984bfa8c502717c08f (diff)
downloadgit-21188b1eafd3741fda0f7905dc997279a17b50ba.zip
git-21188b1eafd3741fda0f7905dc997279a17b50ba.tar.gz
git-21188b1eafd3741fda0f7905dc997279a17b50ba.tar.bz2
Implement git clone -v
The new -v option forces the progressbar, even in case the output is not a terminal. This can be useful if the caller is an IDE or wrapper which wants to scrape the progressbar from stderr and show its information in a different format. Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 't/t5702-clone-options.sh')
-rwxr-xr-xt/t5702-clone-options.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/t5702-clone-options.sh b/t/t5702-clone-options.sh
index 328e4d9..27825f5 100755
--- a/t/t5702-clone-options.sh
+++ b/t/t5702-clone-options.sh
@@ -19,4 +19,17 @@ test_expect_success 'clone -o' '
'
+test_expect_success 'redirected clone' '
+
+ git clone "file://$(pwd)/parent" clone-redirected >out 2>err &&
+ test ! -s err
+
+'
+test_expect_success 'redirected clone -v' '
+
+ git clone -v "file://$(pwd)/parent" clone-redirected-v >out 2>err &&
+ test -s err
+
+'
+
test_done