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>
This commit is contained in:
Stefan Zager 2012-10-24 21:52:52 -07:00 committed by Jeff King
parent 7e2010537e
commit 835460bba9

View File

@ -270,7 +270,6 @@ cmd_add()
;;
--reference=*)
reference="$1"
shift
;;
--)
shift