Fix hg githelp without args

This commit is contained in:
Durham Goode 2014-03-10 16:02:24 -07:00
parent 8bd405d4df
commit c030cd9d54

View File

@ -39,6 +39,10 @@ def backups(ui, repo, *args, **kwargs):
Usage: hg githelp -- <git command>
'''
if len(args) == 0:
raise util.Abort(_('missing git command - usage: hg githelp -- <git command>'))
if args[0] == 'git':
args = args[1:]