mirror of
https://github.com/git/git.git
synced 2024-11-15 05:33:04 +01:00
5a518ad467
Follow the argument convention of git-pack-objects, such that a
separate option (--preogress) is used to force progress reporting
instead of -v/--verbose.
-v/--verbose now does not force progress reporting. Make git-clone.txt
say so.
This should cover all the bases in 21188b1
(Implement git clone -v),
which implemented the option to force progress reporting.
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
36 lines
627 B
Bash
Executable file
36 lines
627 B
Bash
Executable file
#!/bin/sh
|
|
|
|
test_description='basic clone options'
|
|
. ./test-lib.sh
|
|
|
|
test_expect_success 'setup' '
|
|
|
|
mkdir parent &&
|
|
(cd parent && git init &&
|
|
echo one >file && git add file &&
|
|
git commit -m one)
|
|
|
|
'
|
|
|
|
test_expect_success 'clone -o' '
|
|
|
|
git clone -o foo parent clone-o &&
|
|
(cd clone-o && git rev-parse --verify refs/remotes/foo/master)
|
|
|
|
'
|
|
|
|
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 --progress "file://$(pwd)/parent" clone-redirected-progress \
|
|
>out 2>err &&
|
|
test -s err
|
|
|
|
'
|
|
|
|
test_done
|