Skip to contentSkip to conversation

t4118: be nice to non-GNU sed

PATCH New Shawn O. Pearce 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 t4118: be nice to non-GNU sed

From: Johannes Schindelin <[email protected]>

Elias Pipping:

Quoted 2 lines

I'm on a mac, hence /usr/bin/sed is not gnu sed, which makes t4118 fail.

Ack'd-by: Elias Pipping <[email protected]>

---

 t/t4118-apply-empty-context.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
t/t4118-apply-empty- renamed from t/t4118-apply-empty-context.sh +0 -0

context.sh
index 690a182..27cc6f2 100755

t/t4118-apply-empty-context.sh +2 -1
@@ -23,7 +23,8 @@ test_expect_success setup '
 	cat file2 >file2.orig
 	git add file1 file2 &&
 	sed -e "/^B/d" <file1.orig >file1 &&
-	sed -e "/^B/d" <file2.orig >file2 &&
+	sed -e "/^[BQ]/d" <file2.orig >file2 &&
+	echo Q | tr -d "\\012" >>file2 &&
 	cat file1 >file1.mods &&
 	cat file2 >file2.mods &&
 	git diff |
Signature · 1 line
Shawn.