summaryrefslogtreecommitdiff
path: root/git-submodule.sh
diff options
context:
space:
mode:
authorStefan Zager <szager@google.com>2012-10-25 04:52:52 (GMT)
committerJeff King <peff@peff.net>2012-10-26 14:32:31 (GMT)
commit835460bba9fa36aa8e3ef1291cc317085ef6e681 (patch)
treee2bb48e4bfcb3c9022fb94586df44881c7d99a0b /git-submodule.sh
parent7e2010537e96d0a1144520222f20ba1dc3d61441 (diff)
downloadgit-835460bba9fa36aa8e3ef1291cc317085ef6e681.zip
git-835460bba9fa36aa8e3ef1291cc317085ef6e681.tar.gz
git-835460bba9fa36aa8e3ef1291cc317085ef6e681.tar.bz2
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>
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-xgit-submodule.sh1
1 files changed, 0 insertions, 1 deletions
diff --git a/git-submodule.sh b/git-submodule.sh
index ab6b110..dcceb43 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -270,7 +270,6 @@ cmd_add()
;;
--reference=*)
reference="$1"
- shift
;;
--)
shift