Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ta/quiet-pull: Retain multiple -q/-v occurrences in git pull Teach/Fix pull/fetch -q/-v options
- Loading branch information
Showing
7 changed files
with
126 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/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 |