From: Marcel Koeppen Date: Wed, 26 Nov 2008 16:51:01 +0000 (+0100) Subject: t9129-git-svn-i18n-commitencoding: Make compare_svn_head_with() compatible with OSX sed X-Git-Tag: v1.6.1-rc1~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=26d6cc555db0144961bcb3537312cc5a7b6d84d1;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t9129-git-svn-i18n-commitencoding.sh b/t/t9129-git-svn-i18n-commitencoding.sh index 2848e46e3..938b7fe4b 100755 --- a/t/t9129-git-svn-i18n-commitencoding.sh +++ b/t/t9129-git-svn-i18n-commitencoding.sh @@ -16,7 +16,7 @@ compare_git_head_with () { compare_svn_head_with () { LC_ALL=en_US.UTF-8 svn log --limit 1 `git svn info --url` | \ - sed -e 1,3d -e "/^-\+\$/d" >current && + sed -e 1,3d -e "/^-\{1,\}\$/d" >current && test_cmp current "$1" }