diff options
author | Stefan Zager <szager@google.com> | 2012-10-24 21:52:52 -0700 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2012-10-26 10:32:31 -0400 |
commit | 835460bba9fa36aa8e3ef1291cc317085ef6e681 (patch) | |
tree | e2bb48e4bfcb3c9022fb94586df44881c7d99a0b | |
parent | Git 1.7.12.4 (diff) | |
download | tgif-835460bba9fa36aa8e3ef1291cc317085ef6e681.tar.xz |
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>
-rwxr-xr-x | git-submodule.sh | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/git-submodule.sh b/git-submodule.sh index ab6b1107b6..dcceb43d71 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -270,7 +270,6 @@ cmd_add() ;; --reference=*) reference="$1" - shift ;; --) shift |