summaryrefslogtreecommitdiff
path: root/git-submodule.sh
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2016-05-25 15:00:04 -0700
committerJunio C Hamano <gitster@pobox.com>2016-05-25 15:39:50 -0700
commita87bcd6d47d545402ab80ae71a39531997eb6f6f (patch)
treeba22475554c7d8a5c24084e1ca894f0374c5ac17 /git-submodule.sh
parent3a0f269e7c82aa3a87323cb7ae04ac5f129f036b (diff)
downloadgit-a87bcd6d47d545402ab80ae71a39531997eb6f6f.tar.gz
submodule update: make use of the existing fetch_in_submodule functionsb/submodule-misc-cleanups
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 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)