code: plan9front

Download patch

ref: ca6058e0e1bf8352e39e33e8435b206431831a94
parent: 682aabf9f692f310ad910910073d8f9d3839b716
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Jun 28 19:40:40 EDT 2021

git/revert: fix previous commit (helps if you save the file, thanks qwx)
git/revert: fix previous commit (helps if you save the file, thanks qwx)

--- a/sys/src/cmd/git/revert
+++ b/sys/src/cmd/git/revert
@@ -15,8 +15,8 @@
 for(f in `$nl{cd $commit/tree/ && walk -f $files}){
 	mkdir -p `{basename -d $f}
 	if(cp -x -- $commit/tree/$f $f)
-		walk -eq $m > .git/index9/tracked/$m
+		walk -eq $f > .git/index9/tracked/$f
 	if not
-		echo -n > .git/index9/tracked/$m
+		echo -n > .git/index9/tracked/$f
 }
 exit ''