aboutsummaryrefslogtreecommitdiffstats
path: root/git-submodule.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-06-20 11:01:01 -0700
committerJunio C Hamano <gitster@pobox.com>2016-06-20 11:01:01 -0700
commitde76eb69d2359f4820b120e49be9a30067bb5d3b (patch)
tree51f807fe5408f60b5a3fc659aaab47cff4f75480 /git-submodule.sh
parent349e0c1adcaa3061623aa7e82b47039db114805a (diff)
parenta87bcd6d47d545402ab80ae71a39531997eb6f6f (diff)
downloadgit-de76eb69d2359f4820b120e49be9a30067bb5d3b.tar.gz
Merge branch 'sb/submodule-misc-cleanups'
Minor simplification. * sb/submodule-misc-cleanups: submodule update: make use of the existing fetch_in_submodule function
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-xgit-submodule.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-submodule.sh b/git-submodule.sh
index 7fe8a511b3..128f22ffb8 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -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)