aboutsummaryrefslogtreecommitdiff
path: root/t/t5702-clone-options.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2013-09-18 16:06:50 -0400
committerJunio C Hamano <gitster@pobox.com>2013-09-18 13:34:46 -0700
commit2856cbf0ae604c233e7dc62ba7931a469165ce4f (patch)
tree212d7f1362f9a939b8c429292adcfbf727254cf6 /t/t5702-clone-options.sh
parent68b939b2f097b6675c4aaa178655559aa81b25cb (diff)
downloadgit-2856cbf0ae604c233e7dc62ba7931a469165ce4f.tar.gz
git-2856cbf0ae604c233e7dc62ba7931a469165ce4f.tar.xz
clone: treat "checking connectivity" like other progress
When stderr does not point to a tty, we typically suppress "we are now in this phase" progress reporting (e.g., we ask the server not to send us "counting objects" and the like). The new "checking connectivity" message is in the same vein, and should be suppressed. Since clone relies on the transport code to make the decision, we can simply sneak a peek at the "progress" field of the transport struct. That properly takes into account both the verbosity and progress options we were given, as well as the result of isatty(). Note that we do not set up that progress flag for a local clone, as we do not fetch using the transport at all. That's acceptable here, though, because we also do not perform a connectivity check in that case. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5702-clone-options.sh')
-rwxr-xr-xt/t5702-clone-options.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t5702-clone-options.sh b/t/t5702-clone-options.sh
index d3dbdfe06..9e24ec88e 100755
--- a/t/t5702-clone-options.sh
+++ b/t/t5702-clone-options.sh
@@ -22,7 +22,8 @@ test_expect_success 'clone -o' '
test_expect_success 'redirected clone does not show progress' '
git clone "file://$(pwd)/parent" clone-redirected >out 2>err &&
- ! grep % err
+ ! grep % err &&
+ test_i18ngrep ! "Checking connectivity" err
'