Skip to content

Commit 26d6cc5

Browse files
Marzelpangitster
authored andcommitted
t9129-git-svn-i18n-commitencoding: Make compare_svn_head_with() compatible with OSX sed
The sed call used in compare_svn_head_with() uses the + quantifier, which is not supported in the OSX version of sed. It is replaced by the equivalent \{1,\}. Signed-off-by: Marcel Koeppen <git-dev@marzelpan.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 73c427e commit 26d6cc5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

t/t9129-git-svn-i18n-commitencoding.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ compare_git_head_with () {
1616

1717
compare_svn_head_with () {
1818
LC_ALL=en_US.UTF-8 svn log --limit 1 `git svn info --url` | \
19-
sed -e 1,3d -e "/^-\+\$/d" >current &&
19+
sed -e 1,3d -e "/^-\{1,\}\$/d" >current &&
2020
test_cmp current "$1"
2121
}
2222

0 commit comments

Comments
 (0)