author | Jens Lehmann <Jens.Lehmann@web.de> | |
Mon, 6 Jun 2011 19:58:43 +0000 (21:58 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 6 Jun 2011 20:46:36 +0000 (13:46 -0700) | ||
commit | f22a17e8da25a043950a13f11035930922bb86e7 | |
tree | b8fdcef7d6a5a7f55bde6e16d8f3a09a8ec47633 | tree | snapshot |
parent | 4d689320049e1ff3bd31e0468d6f17eeb0b7029c | commit | diff |
submodule add: clean up duplicated code
In cmd_add() the switch statement used to resolve a relative url was
present twice. Remove the second one and use the realrepo variable set
by the first one (lines 194 ff.) instead.
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
In cmd_add() the switch statement used to resolve a relative url was
present twice. Remove the second one and use the realrepo variable set
by the first one (lines 194 ff.) instead.
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh | diff | blob | history |