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>
Stefan Zager committed
Oct 24, 2012 at 21:52 UTC
835460bba9fa36aa8e3ef1291cc317085ef6e681
1 file changed
-1
git-submodule.sh
-1
@@ -270,7 +270,6 @@ cmd_add()
270
;;
271
--reference=*)
272
reference="$1"
273
- shift
273
;;
274
--)
275
shift