mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
git/revert: correctly revert files with spaces in the path
This commit is contained in:
parent
d2fc480bc2
commit
f6ac182f86
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ if(~ $#query 0)
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue