submodule add: fix handling of --reference=<repo> option
authorStefan Zager <szager@google.com>
Thu, 25 Oct 2012 04:52:52 +0000 (21:52 -0700)
committerJeff King <peff@peff.net>
Fri, 26 Oct 2012 14:32:31 +0000 (10:32 -0400)
commit835460bba9fa36aa8e3ef1291cc317085ef6e681
treee2bb48e4bfcb3c9022fb94586df44881c7d99a0b
parent7e2010537e96d0a1144520222f20ba1dc3d61441
submodule add: fix handling of --reference=<repo> option

Doing a shift here is wrong because there is no extra
argument to consume when "--reference=<repo>" is used (note
the '=' instead of a space).

Signed-off-by: Stefan Zager <szager@google.com>
Signed-off-by: Jeff King <peff@peff.net>
git-submodule.sh