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>
Marcel Koeppen committed
Nov 26, 2008 at 17:51 UTC
26d6cc555db0144961bcb3537312cc5a7b6d84d1
1 file changed
+1
-1
t/t9129-git-svn-i18n-commitencoding.sh
+1
-1
@@ -16,7 +16,7 @@ compare_git_head_with () {
16
17
compare_svn_head_with () {
18
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 &&
20
test_cmp current "$1"
21
}
22