Merge 'git-gui' into HEAD
[git/mingw/4msysgit.git] / t / t5702-clone-options.sh
blob9e24ec88e67f0db8be401f2a60f69c408f39fc02
1 #!/bin/sh
3 test_description='basic clone options'
4 . ./test-lib.sh
6 test_expect_success 'setup' '
8 mkdir parent &&
9 (cd parent && git init &&
10 echo one >file && git add file &&
11 git commit -m one)
15 test_expect_success 'clone -o' '
17 git clone -o foo parent clone-o &&
18 (cd clone-o && git rev-parse --verify refs/remotes/foo/master)
22 test_expect_success 'redirected clone does not show progress' '
24 git clone "file://$(pwd)/parent" clone-redirected >out 2>err &&
25 ! grep % err &&
26 test_i18ngrep ! "Checking connectivity" err
30 test_expect_success 'redirected clone -v does show progress' '
32 git clone --progress "file://$(pwd)/parent" clone-redirected-progress \
33 >out 2>err &&
34 grep % err
38 test_done