Skip to content

Commit

Permalink
submodule add: fix handling of --reference=<repo> option
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Zager authored and Jeff King committed Oct 26, 2012
1 parent 7e20105 commit 835460b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion git-submodule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ cmd_add()
;;
--reference=*)
reference="$1"
shift
;;
--)
shift
Expand Down

0 comments on commit 835460b

Please sign in to comment.