Browse Source

Merge branch 'sb/submodule-misc-cleanups'

Minor simplification.

* sb/submodule-misc-cleanups:
  submodule update: make use of the existing fetch_in_submodule function
maint
Junio C Hamano 9 years ago
parent
commit
de76eb69d2
  1. 2
      git-submodule.sh

2
git-submodule.sh

@ -611,7 +611,7 @@ cmd_update() @@ -611,7 +611,7 @@ cmd_update()
if test -z "$nofetch"
then
# Fetch remote before determining tracking $sha1
(sanitize_submodule_env; cd "$sm_path" && git-fetch) ||
fetch_in_submodule "$sm_path" ||
die "$(eval_gettext "Unable to fetch in submodule path '\$sm_path'")"
fi
remote_name=$(sanitize_submodule_env; cd "$sm_path" && get_default_remote)

Loading…
Cancel
Save