Merge branch 'maint'
authorJunio C Hamano <gitster@pobox.com>
Mon, 1 Jul 2013 19:46:54 +0000 (12:46 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jul 2013 19:46:54 +0000 (12:46 -0700)
* maint:
t7500: fix flipped actual/expect
lib-rebase: document exec_ in FAKE_LINES

t/lib-rebase.sh
t/t7500-commit.sh
index 2451e6b1ea82317c649e47d7321beb1d1dce576f..8ff87fb3f9bee1c6955f84b66027037100ebbbd3 100644 (file)
@@ -17,6 +17,8 @@
 #       ("squash", "fixup", "edit", or "reword") and the SHA1 taken
 #       from the specified line.
 #
+#   "exec_cmd_with_args" -- add an "exec cmd with args" line.
+#
 #   "#" -- Add a comment line.
 #
 #   ">" -- Add a blank line.
index 436b7b606e3eab09a0dd8c1b67ab90e43c24dffc..bdc1f295030b61fd6d4fc0ef672dffa99c027d8b 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.