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:
parent
3cf3f5481b
commit
e2e4a46f26
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,8 @@ rfork en
|
||||||
gitup
|
gitup
|
||||||
|
|
||||||
flagfmt='c:query query' args='file ...'
|
flagfmt='c:query query' args='file ...'
|
||||||
eval `''{aux/getflags $*} || exec aux/usage
|
if (! eval `''{aux/getflags $*} || ~ $#* 0)
|
||||||
|
exec aux/usage
|
||||||
|
|
||||||
commit=$gitfs/HEAD
|
commit=$gitfs/HEAD
|
||||||
if(~ $#query 1)
|
if(~ $#query 1)
|
||||||
|
|
Loading…
Reference in a new issue