Skip to content

Commit

Permalink
t9129-git-svn-i18n-commitencoding: Make compare_svn_head_with() compa…
Browse files Browse the repository at this point in the history
…tible 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>
  • Loading branch information
Marcel Koeppen authored and Junio C Hamano committed Nov 26, 2008
1 parent 73c427e commit 26d6cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t9129-git-svn-i18n-commitencoding.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down

0 comments on commit 26d6cc5

Please sign in to comment.