From ca6058e0e1bf8352e39e33e8435b206431831a94 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Mon, 28 Jun 2021 23:40:40 +0000 Subject: [PATCH] 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) --- sys/src/cmd/git/revert | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/src/cmd/git/revert b/sys/src/cmd/git/revert index 0f11d82a9..4a7cff71b 100644 --- a/sys/src/cmd/git/revert +++ b/sys/src/cmd/git/revert @@ -15,8 +15,8 @@ files=`$nl{cleanname -d $gitrel $*} 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 '' -- 2.44.0