From: Stefan Zager Date: Thu, 25 Oct 2012 04:52:52 +0000 (-0700) Subject: submodule add: fix handling of --reference= option X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=835460bba9fa36aa8e3ef1291cc317085ef6e681;p=git.git submodule add: fix handling of --reference= option Doing a shift here is wrong because there is no extra argument to consume when "--reference=" is used (note the '=' instead of a space). Signed-off-by: Stefan Zager Signed-off-by: Jeff King --- diff --git a/git-submodule.sh b/git-submodule.sh index ab6b1107b..dcceb43d7 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -270,7 +270,6 @@ cmd_add() ;; --reference=*) reference="$1" - shift ;; --) shift