1. Stefan Saasen
  2. git

Commits

Junio C Hamano  committed 7e52164 Merge

Merge branch 'bw/maint-t8006-sed-incomplete-line'

* bw/maint-t8006-sed-incomplete-line:
Use perl instead of sed for t8006-blame-textconv test

  • Participants
  • Parent commits e04dc49, 8b9624c
  • Branches master

Comments (0)

Files changed (1)

File t/t8006-blame-textconv.sh

View file
  • Ignore whitespace
 cat >helper <<'EOF'
 #!/bin/sh
 grep -q '^bin: ' "$1" || { echo "E: $1 is not \"binary\" file" 1>&2; exit 1; }
-sed 's/^bin: /converted: /' "$1"
+perl -p -e 's/^bin: /converted: /' "$1"
 EOF
 chmod +x helper