From: Stefan Zager Date: Thu, 25 Oct 2012 04:52:52 +0000 (-0700) Subject: submodule add: fix handling of --reference= option X-Git-Tag: v1.8.1-rc0~88^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/835460bba9fa36aa8e3ef1291cc317085ef6e681 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 ab6b1107b6..dcceb43d71 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -270,7 +270,6 @@ cmd_add() ;; --reference=*) reference="$1" - shift ;; --) shift