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:
parent
7e2010537e
commit
835460bba9
@ -270,7 +270,6 @@ cmd_add()
|
||||
;;
|
||||
--reference=*)
|
||||
reference="$1"
|
||||
shift
|
||||
;;
|
||||
--)
|
||||
shift
|
||||
|
Loading…
Reference in New Issue
Block a user