Code

clone: detect extra arguments
authorJonathan Nieder <jrnieder@gmail.com>
Thu, 29 Oct 2009 08:10:30 +0000 (03:10 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 30 Oct 2009 22:18:11 +0000 (15:18 -0700)
commitd52dc4b10b2f78dc24ea05e88ddc25ee0f46491e
tree7e2957739b1ea3df787185f13fcbd3ebf15054c2
parentebc9d420566de32dbadada5a4f700db2d974853c
clone: detect extra arguments

If git clone is given more than two non-option arguments, it
silently throws away all but the first one.  Complain instead.

Discovered by comparing the new builtin clone to the old
git-clone.sh.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-clone.c