summaryrefslogtreecommitdiff
path: root/git-bisect.sh
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2007-11-08 21:48:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-11-09 08:19:24 (GMT)
commit063036af0832710cfcb1380cc4f9c4597b98cc26 (patch)
tree26ade13432646f5974f84303a8f41ae5ab8bae04 /git-bisect.sh
parentf3fa1838024dc0f3741d2f9654af92f6a1bb34bd (diff)
downloadgit-063036af0832710cfcb1380cc4f9c4597b98cc26.zip
git-063036af0832710cfcb1380cc4f9c4597b98cc26.tar.gz
git-063036af0832710cfcb1380cc4f9c4597b98cc26.tar.bz2
git-bisect.sh: Fix sed script to work with AIX and BSD sed.
\n is not portable in a s/// replacement string, only in the regex part. backslash-newline helps. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-bisect.sh')
-rwxr-xr-xgit-bisect.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-bisect.sh b/git-bisect.sh
index b74f44d..1ed44e5 100755
--- a/git-bisect.sh
+++ b/git-bisect.sh
@@ -275,7 +275,8 @@ exit_if_skipped_commits () {
if expr "$_tried" : ".*[|].*" > /dev/null ; then
echo "There are only 'skip'ped commit left to test."
echo "The first bad commit could be any of:"
- echo "$_tried" | sed -e 's/[|]/\n/g'
+ echo "$_tried" | sed -e 's/[|]/\
+/g'
echo "We cannot bisect more!"
exit 2
fi