Merge branch 'bc/submodule-status-ignored'
* bc/submodule-status-ignored: Improve documentation concerning the status.submodulesummary setting submodule: don't print status output with ignore=all submodule: fix confusing variable name
This commit is contained in:
@ -104,6 +104,24 @@ EOF
|
||||
test_cmp expected actual
|
||||
"
|
||||
|
||||
test_expect_success 'no ignore=all setting has any effect' "
|
||||
git config -f .gitmodules submodule.sm1.path sm1 &&
|
||||
git config -f .gitmodules submodule.sm1.ignore all &&
|
||||
git config submodule.sm1.ignore all &&
|
||||
git config diff.ignoreSubmodules all &&
|
||||
git submodule summary >actual &&
|
||||
cat >expected <<-EOF &&
|
||||
* sm1 $head1...$head2 (1):
|
||||
> Add foo3
|
||||
|
||||
EOF
|
||||
test_cmp expected actual &&
|
||||
git config --unset diff.ignoreSubmodules &&
|
||||
git config --remove-section submodule.sm1 &&
|
||||
git config -f .gitmodules --remove-section submodule.sm1
|
||||
"
|
||||
|
||||
|
||||
commit_file sm1 &&
|
||||
head3=$(
|
||||
cd sm1 &&
|
||||
|
Reference in New Issue
Block a user