summaryrefslogtreecommitdiff
path: root/t/t7102-reset.sh
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2017-10-06 19:00:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-10-07 01:56:08 (GMT)
commit9c5b2fab304b5ce3233401c7c7e7a123d551c484 (patch)
treee53aea6a3b052ed63bd417d6019bf273439f5d7f /t/t7102-reset.sh
parent217f2767cbcb562872437eed4dec62e00846d90c (diff)
downloadgit-9c5b2fab304b5ce3233401c7c7e7a123d551c484.zip
git-9c5b2fab304b5ce3233401c7c7e7a123d551c484.tar.gz
git-9c5b2fab304b5ce3233401c7c7e7a123d551c484.tar.bz2
tests: fix diff order arguments in test_cmp
Fix the argument order for test_cmp. When given the expected result first the diff shows the actual output with '+' and the expectation with '-', which is the convention for our tests. Signed-off-by: Stefan Beller <sbeller@google.com> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7102-reset.sh')
-rwxr-xr-xt/t7102-reset.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t7102-reset.sh b/t/t7102-reset.sh
index 86f23be..95653a0 100755
--- a/t/t7102-reset.sh
+++ b/t/t7102-reset.sh
@@ -428,9 +428,9 @@ test_expect_success 'test --mixed <paths>' '
git reset HEAD -- file1 file2 file3 &&
test_must_fail git diff --quiet &&
git diff > output &&
- test_cmp output expect &&
+ test_cmp expect output &&
git diff --cached > output &&
- test_cmp output cached_expect
+ test_cmp cached_expect output
'
test_expect_success 'test resetting the index at give paths' '