git: 9front

Download patch

ref: c0b42021b05690c6f05ac0d5b19021bfc353772a
parent: 18b237343930ecbdacdda74bb2a061afb753f730
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.
--