summaryrefslogtreecommitdiff
path: root/t/t4205-log-pretty-formats.sh
diff options
context:
space:
mode:
authorBrian Gernhardt <brian@gernhardtsoftware.com>2013-07-01 18:59:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-07-01 19:28:06 (GMT)
commit7c37521487332fd700e2fa58bd2547d275e4f4d2 (patch)
tree2a54f959639f3c95ed554277c15dfd9807de2a85 /t/t4205-log-pretty-formats.sh
parentecaee8050cec23eb4cf082512e907e3e52c20b57 (diff)
downloadgit-7c37521487332fd700e2fa58bd2547d275e4f4d2.zip
git-7c37521487332fd700e2fa58bd2547d275e4f4d2.tar.gz
git-7c37521487332fd700e2fa58bd2547d275e4f4d2.tar.bz2
t4205: replace .\+ with ..* in sed commands
OS X's sed only accepts basic regular expressions, which does not allow the + quantifier. However '..*' (anything, followed by zero or more anything) is the same as '.\+' (one or more anything) and valid in any regular expression language. Signed-off-by: Brian Gernhardt <brian@gernhardtsoftware.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4205-log-pretty-formats.sh')
-rwxr-xr-xt/t4205-log-pretty-formats.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t4205-log-pretty-formats.sh b/t/t4205-log-pretty-formats.sh
index 719d132..3cfb744 100755
--- a/t/t4205-log-pretty-formats.sh
+++ b/t/t4205-log-pretty-formats.sh
@@ -192,7 +192,7 @@ test_expect_success 'left alignment formatting with trunc' "
message ..
message ..
add bar Z
-$(commit_msg "" "8" ".\+$")
+$(commit_msg "" "8" "..*$")
EOF
test_cmp expected actual
"
@@ -310,7 +310,7 @@ test_expect_success 'left/right alignment formatting with stealing' "
short long long long
message .. A U Thor
add bar A U Thor
-$(commit_msg "" "8" ".\+$") A U Thor
+$(commit_msg "" "8" "..*$") A U Thor
EOF
test_cmp expected actual
"