submodule update: make use of the existing fetch_in_submodule function
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Stefan Beller committed
May 25, 2016 at 15:00 UTC
a87bcd6d47d545402ab80ae71a39531997eb6f6f
1 file changed
+1
-1
git-submodule.sh
+1
-1
@@ -640,7 +640,7 @@ cmd_update()
640
if test -z "$nofetch"
641
then
642
# Fetch remote before determining tracking $sha1
643
- (sanitize_submodule_env; cd "$sm_path" && git-fetch) ||
643
+ fetch_in_submodule "$sm_path" ||
644
die "$(eval_gettext "Unable to fetch in submodule path '\$sm_path'")"
645
fi
646
remote_name=$(sanitize_submodule_env; cd "$sm_path" && get_default_remote)