shithub: riscv

Download patch

ref: f6ac182f86bf0bcc777a76db50f94227ef6f7962
parent: d2fc480bc214afaa88413c2ed4c0b40497bfc161
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Jul 17 20:52:20 EDT 2023

git/revert: correctly revert files with spaces in the path

--- a/sys/src/cmd/git/revert
+++ b/sys/src/cmd/git/revert
@@ -13,7 +13,7 @@
 commit=`{git/query -p $query}
 
 files=`$nl{cleanname -d $gitrel $* | drop $gitroot}
-for(f in `{git/walk -c -fRM -b $query $files}){
+for(f in `$nl{git/walk -c -fRM -b $query $files}){
 	mkdir -p `{basename -d $f}
 	cp -x -- $commit/tree/$f $f
 	touch $f