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

[PATCH] posix compatibility for t4200

From
Bryan Larsen <bryan@larsen.st>
Date
May 2, 2007, 21:53 UTC
Message-ID
<46390853.2030306@larsen.st>

Fix t4200 so that it also works on OS X by not relying on gnu extensions to sed.

Signed-off-by: Bryan Larsen <bryan@larsen.st>
---
  t/t4200-rerere.sh |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/t4200-rerere.sh b/t/t4200-rerere.sh
index 6ba63d7..300e90e 100755
--- a/t/t4200-rerere.sh
+++ b/t/t4200-rerere.sh
@@ -44,7 +44,7 @@ mkdir .git/rr-cache

  test_expect_failure 'conflicting merge' 'git pull . first'

-sha1=$(sed -e 's/\t.*//' .git/rr-cache/MERGE_RR)
+sha1=$(sed -e 's/[[:space:]].*//' .git/rr-cache/MERGE_RR)
  rr=.git/rr-cache/$sha1
  test_expect_success 'recorded preimage' "grep ======= $rr/preimage"
-- 
1.5.1
Message 1 of 1 in “posix compatibility for t4200”
  1. posix compatibility for t4200Bryan Larsen, May 2, 2007

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.