summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Stefan Zager <szager@google.com>2012-10-24 21:52:52 -0700
committerLibravatar Jeff King <peff@peff.net>2012-10-26 10:32:31 -0400
commit835460bba9fa36aa8e3ef1291cc317085ef6e681 (patch)
treee2bb48e4bfcb3c9022fb94586df44881c7d99a0b
parentGit 1.7.12.4 (diff)
downloadtgif-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-xgit-submodule.sh1
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