Thread (6 messages) flat view 6 messages, 3 authors, 2016-06-15

Re: [PATCH] clone: detect extra arguments

From: Jeff King <hidden>
Date: 2016-06-15 22:47:38

On Thu, Oct 29, 2009 at 03:10:30AM -0500, Jonathan Nieder wrote:
If git clone is given more than two non-option arguments, it
silently throws away all but the first one.  Complain instead.
[...]
+	if (argc > 2)
+		die("Too many arguments.");
+
Should we maybe be showing the usage in this case?
 	if (argc == 0)
 		die("You must specify a repository to clone.");
Probably we should do the same here, too.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help