From: Ori Bernstein Date: Mon, 28 Jun 2021 23:40:40 +0000 (+0000) Subject: git/revert: fix previous commit (helps if you save the file, thanks qwx) X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=ca6058e0e1bf8352e39e33e8435b206431831a94;p=plan9front.git 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) --- 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 ''