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
This commit is contained in:
Kyle Milz 2021-11-04 19:08:02 +00:00 committed by Ori Bernstein
parent 3cf3f5481b
commit e2e4a46f26

View file

@ -5,7 +5,8 @@ rfork en
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)