From: Stefan Beller Date: Wed, 25 May 2016 22:00:04 +0000 (-0700) Subject: submodule update: make use of the existing fetch_in_submodule function X-Git-Tag: v2.10.0-rc0~201^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a87bcd6d47d545402ab80ae71a39531997eb6f6f;p=thirdparty%2Fgit.git submodule update: make use of the existing fetch_in_submodule function Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- diff --git a/git-submodule.sh b/git-submodule.sh index 5a4dec050b..7698102b9c 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -640,7 +640,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)