summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2022-06-04 23:35:49 +0000
committerOri Bernstein <ori@eigenstate.org>2022-06-04 23:35:49 +0000
commit926be5e34eb633bc3e22b013705f5474d21aa735 (patch)
treef3f409fd59cc8a844411634436ef291a6026e8d7
parent5d37407e3c98b41f64c20a3d03125d3ea6299a2d (diff)
git/import: use patch(1)
we have a new, pretty patch(1), lets use it.
-rwxr-xr-xsys/src/cmd/git/import2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/git/import b/sys/src/cmd/git/import
index 7ba7d0e48..0cc450bf8 100755
--- a/sys/src/cmd/git/import
+++ b/sys/src/cmd/git/import
@@ -78,7 +78,7 @@ fn apply @{
rc -c '
echo applying $msg | sed 1q
date=`{seconds $date}
- if(! files=`$nl{ape/patch -Ep1 < $diffpath | grep ''^patching file'' | sed ''s/^patching file `(.*)''''/\1/''})
+ if(! files=`$nl{patch -p1 < $diffpath})
die ''patch failed''
for(f in $files){
if(test -e $f)