summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-09-29 12:31:07 -0700
committerJunio C Hamano <gitster@pobox.com>2016-09-29 13:53:48 -0700
commitb8fbf4dbf2da0af6712aca9d705a77eef1a548d9 (patch)
treea941fe75841f4762f34bb9d6e0a38cba074e00ca
parent02ea5919b509dd0924ab63c3a4c76fbbdbff4fb6 (diff)
downloadgit-b8fbf4dbf2da0af6712aca9d705a77eef1a548d9.tar.gz
t1300: always compare expect to actual
The two arguments to the test_cmp helper should always have the expected output first and then the actual one, so that an unmet expectation would appear as -what we wanted to see +what we actually saw in its output. Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t1300-repo-config.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh
index 0543b62227..1b3f6f4854 100755
--- a/t/t1300-repo-config.sh
+++ b/t/t1300-repo-config.sh
@@ -936,7 +936,7 @@ EOF
test_expect_success 'value continued on next line' '
git config --list > result &&
- test_cmp result expect
+ test_cmp expect result
'
cat > .git/config <<\EOF