Skip to content
Snippets Groups Projects
Commit 324a1ad9 authored by Sverre Rabbelier's avatar Sverre Rabbelier
Browse files

gremote: do not die on wrong number of args

parent f2dfb2be
No related branches found
No related tags found
No related merge requests found
......@@ -54,8 +54,10 @@
if len(args) == 0:
git.remote_list()
elif len(args) < 2:
repo.ui.warn(_("must supply an action and a remote\n"))
else:
verb = args[0]
nick = args[1]
if verb == 'add':
......@@ -57,9 +59,9 @@
else:
verb = args[0]
nick = args[1]
if verb == 'add':
if args[2]:
if len(args) == 3:
git.remote_add(nick, args[2])
else:
repo.ui.warn(_("must supply a url to add as a remote\n"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment