From 835460bba9fa36aa8e3ef1291cc317085ef6e681 Mon Sep 17 00:00:00 2001 From: Stefan Zager Date: Wed, 24 Oct 2012 21:52:52 -0700 Subject: [PATCH] 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 --- git-submodule.sh | 1 - 1 file changed, 1 deletion(-) 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 -- 2.32.0.93.g670b81a890