summaryrefslogtreecommitdiff
path: root/git-submodule.sh
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2016-05-25 22:00:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-05-25 22:39:50 (GMT)
commita87bcd6d47d545402ab80ae71a39531997eb6f6f (patch)
treeba22475554c7d8a5c24084e1ca894f0374c5ac17 /git-submodule.sh
parent3a0f269e7c82aa3a87323cb7ae04ac5f129f036b (diff)
downloadgit-a87bcd6d47d545402ab80ae71a39531997eb6f6f.zip
git-a87bcd6d47d545402ab80ae71a39531997eb6f6f.tar.gz
git-a87bcd6d47d545402ab80ae71a39531997eb6f6f.tar.bz2
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>
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 5a4dec0..7698102 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)