Skip to content

Commit 835460b

Browse files
Stefan Zagerpeff
authored andcommitted
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 <[email protected]> Signed-off-by: Jeff King <[email protected]>
1 parent 7e20105 commit 835460b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

git-submodule.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ cmd_add()
270270
;;
271271
--reference=*)
272272
reference="$1"
273-
shift
274273
;;
275274
--)
276275
shift

0 commit comments

Comments
 (0)