mirror of
https://github.com/git/git.git
synced 2024-11-26 11:34:00 +08:00
21188b1eaf
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>
36 lines
608 B
Bash
Executable File
36 lines
608 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 -v "file://$(pwd)/parent" clone-redirected-v >out 2>err &&
|
|
test -s err
|
|
|
|
'
|
|
|
|
test_done
|