[PATCH v3 1/5] commit test: Use test_config instead of git-config
- From
Caleb Thompson <cjaysson@gmail.com>
- Date
- May 26, 2014, 18:56 UTC
- Message-ID
- <1401130586-93105-2-git-send-email-caleb@calebthompson.io>
- In-Reply-To
- <1401130586-93105-1-git-send-email-caleb@calebthompson.io>
Some of the tests in t/t7507-commit-verbose.sh were still using git-config to set configuration. Change them to use the test_config helper.
Signed-off-by: Caleb Thompson <caleb@calebthompson.io> --- t/t7507-commit-verbose.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/t7507-commit-verbose.sh b/t/t7507-commit-verbose.sh index 2ddf28c..6d778ed 100755 --- a/t/t7507-commit-verbose.sh +++ b/t/t7507-commit-verbose.sh @@ -43,7 +43,7 @@ test_expect_success 'verbose diff is stripped out' ' ' test_expect_success 'verbose diff is stripped out (mnemonicprefix)' ' - git config diff.mnemonicprefix true && + test_config diff.mnemonicprefix true && git commit --amend -v && check_message message ' @@ -71,7 +71,7 @@ test_expect_success 'diff in message is retained with -v' ' ' test_expect_success 'submodule log is stripped out too with -v' ' - git config diff.submodule log && + test_config diff.submodule log && git submodule add ./. sub && git commit -m "sub added" && (
-- 1.9.3