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)