diff --git a/t/t7508-status.sh b/t/t7508-status.sh index 7121a550c7..f7fe22a195 100755 --- a/t/t7508-status.sh +++ b/t/t7508-status.sh @@ -1603,7 +1603,7 @@ EOF test_expect_success 'git commit -m will commit a staged but ignored submodule' ' git commit -uno -m message && git status -s --ignore-submodules=dirty >output && - test_i18ngrep ! "^M. sm" output && + test_i18ngrep ! "^M. sm" output && git config --remove-section submodule.subname && git config -f .gitmodules --remove-section submodule.subname '