summaryrefslogtreecommitdiff
path: root/git-submodule.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-06-20 11:01:01 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-06-20 11:01:01 -0700
commitde76eb69d2359f4820b120e49be9a30067bb5d3b (patch)
tree51f807fe5408f60b5a3fc659aaab47cff4f75480 /git-submodule.sh
parentMerge branch 'ew/daemon-socket-keepalive' (diff)
parentsubmodule update: make use of the existing fetch_in_submodule function (diff)
downloadtgif-de76eb69d2359f4820b120e49be9a30067bb5d3b.tar.xz
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)