mirror of
https://github.com/git/git.git
synced 2026-03-13 18:33:25 +01:00
sed does not accept -i on msys.
We use a temporary .new file instead. Signed-off-by: Mike Pape <dotzenlabs@gmail.com>
This commit is contained in:
@@ -69,7 +69,8 @@ test_expect_success \
|
||||
|
||||
cat >editor <<\EOF
|
||||
#!/bin/sh
|
||||
sed -i -e "s/a file/an amend commit/g" $1
|
||||
sed -e "s/a file/an amend commit/g" $1 > $1.new
|
||||
mv $1.new $1
|
||||
EOF
|
||||
chmod 755 editor
|
||||
|
||||
@@ -88,7 +89,8 @@ test_expect_success \
|
||||
|
||||
cat >editor <<\EOF
|
||||
#!/bin/sh
|
||||
sed -i -e "s/amend/older/g" $1
|
||||
sed -e "s/amend/older/g" $1 > $1.new
|
||||
mv $1.new $1
|
||||
EOF
|
||||
chmod 755 editor
|
||||
|
||||
|
||||
Reference in New Issue
Block a user