ref: e2e4a46f26ff7268a696a45d82414fb992b648d5
parent: 3cf3f5481bd5df008f144b06e8701759be4de2e7
author: Kyle Milz <[email protected]>
date: Thu Nov 4 15:08:02 EDT 2021
git/revert: fix empty invocation git/revert requires a file name argument, but when none is given it fails in a strange way: % git/revert usage: cleanname [-d pwd] name... /bin/git/revert:15: null list in concatenation
--- a/sys/src/cmd/git/revert
+++ b/sys/src/cmd/git/revert
@@ -5,7 +5,8 @@
gitup
flagfmt='c:query query' args='file ...'
-eval `''{aux/getflags $*} || exec aux/usage
+if (! eval `''{aux/getflags $*} || ~ $#* 0)
+ exec aux/usage
commit=$gitfs/HEAD
if(~ $#query 1)