Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Zager <szager@google.com>2012-10-25 08:52:52 +0400
committerJeff King <peff@peff.net>2012-10-26 18:32:31 +0400
commit835460bba9fa36aa8e3ef1291cc317085ef6e681 (patch)
treee2bb48e4bfcb3c9022fb94586df44881c7d99a0b /git-submodule.sh
parent7e2010537e96d0a1144520222f20ba1dc3d61441 (diff)
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 ab6b1107b6..dcceb43d71 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -270,7 +270,6 @@ cmd_add()
;;
--reference=*)
reference="$1"
- shift
;;
--)
shift