git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] t9129-git-svn-i18n-commitencoding: Make compare_svn_head_with() compatible with OSX sed

From
Marcel Koeppen <git-dev@marzelpan.de>
Date
Nov 26, 2008, 16:51 UTC
Message-ID
<1227718261-12615-1-git-send-email-git-dev@marzelpan.de>

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>
---
 t/t9129-git-svn-i18n-commitencoding.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/t9129-git-svn-i18n-commitencoding.sh b/t/t9129-git-svn-i18n-commitencoding.sh
index 2848e46..938b7fe 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"
 }
 
-- 
1.6.0.4.771.gef3b3.dirty
Message 1 of 1 in “t9129-git-svn-i18n-commitencoding: Make compare_svn_head_with() compatible with OSX sed”
  1. t9129-git-svn-i18n-commitencoding: Make compare_svn_head_with() compatible with OSX sedMarcel Koeppen, Nov 26, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.