code: plan9front

Download patch

ref: 957863b064ed01ebb1297ddd368ce5a78c957f5e
parent: e81e1b80842b6d25eb5ab9dc8bc86f37ec2f5316
author: qwx <qwx@sciops.net>
date: Sat Sep 24 11:53:35 EDT 2022

git/import: fix handling relative paths

--- a/sys/src/cmd/git/import
+++ b/sys/src/cmd/git/import
@@ -110,7 +110,7 @@
 
 patches=(/fd/0)
 if(! ~ $#* 0)
-	patches=$*
+	patches=`{cleanname -d $gitrel $*}
 for(p in $patches){
 	# upas serves the decoded header and body separately,
 	# so we cat them together when applying a upas message.