OSDN Git Service

t7500: fix flipped actual/expect
authorAndrew Pimlott <andrew@pimlott.net>
Mon, 1 Jul 2013 16:20:36 +0000 (09:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jul 2013 16:53:00 +0000 (09:53 -0700)
Signed-off-by: Andrew Pimlott <andrew@pimlott.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7500-commit.sh

index 436b7b6..bdc1f29 100755 (executable)
@@ -13,9 +13,9 @@ commit_msg_is () {
        expect=commit_msg_is.expect
        actual=commit_msg_is.actual
 
-       printf "%s" "$(git log --pretty=format:%s%b -1)" >$expect &&
-       printf "%s" "$1" >$actual &&
-       test_i18ncmp $expect $actual
+       printf "%s" "$(git log --pretty=format:%s%b -1)" >"$actual" &&
+       printf "%s" "$1" >"$expect" &&
+       test_i18ncmp "$expect" "$actual"
 }
 
 # A sanity check to see if commit is working at all.