mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
![Tuncer Ayaz](/assets/img/avatar_default.png)
Implement git-pull --quiet and git-pull --verbose by adding the options to git-pull and fixing verbosity handling in git-fetch. Signed-off-by: Junio C Hamano <gitster@pobox.com>
61 lines
890 B
Bash
Executable file
61 lines
890 B
Bash
Executable file
#!/bin/sh
|
|
|
|
test_description='pull options'
|
|
|
|
. ./test-lib.sh
|
|
|
|
D=`pwd`
|
|
|
|
test_expect_success 'setup' '
|
|
mkdir parent &&
|
|
(cd parent && git init &&
|
|
echo one >file && git add file &&
|
|
git commit -m one)
|
|
'
|
|
|
|
cd "$D"
|
|
|
|
test_expect_success 'git pull -q' '
|
|
mkdir clonedq &&
|
|
cd clonedq &&
|
|
git pull -q "$D/parent" >out 2>err &&
|
|
test ! -s out
|
|
'
|
|
|
|
cd "$D"
|
|
|
|
test_expect_success 'git pull' '
|
|
mkdir cloned &&
|
|
cd cloned &&
|
|
git pull "$D/parent" >out 2>err &&
|
|
test -s out
|
|
'
|
|
cd "$D"
|
|
|
|
test_expect_success 'git pull -v' '
|
|
mkdir clonedv &&
|
|
cd clonedv &&
|
|
git pull -v "$D/parent" >out 2>err &&
|
|
test -s out
|
|
'
|
|
|
|
cd "$D"
|
|
|
|
test_expect_success 'git pull -v -q' '
|
|
mkdir clonedvq &&
|
|
cd clonedvq &&
|
|
git pull -v -q "$D/parent" >out 2>err &&
|
|
test ! -s out
|
|
'
|
|
|
|
cd "$D"
|
|
|
|
test_expect_success 'git pull -q -v' '
|
|
mkdir clonedqv &&
|
|
cd clonedqv &&
|
|
git pull -q -v "$D/parent" >out 2>err &&
|
|
test -s out
|
|
'
|
|
|
|
test_done
|