diff options
author | Stefan Beller <sbeller@google.com> | 2016-05-26 00:00:04 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-26 00:39:50 +0200 |
commit | a87bcd6d47d545402ab80ae71a39531997eb6f6f (patch) | |
tree | ba22475554c7d8a5c24084e1ca894f0374c5ac17 /git-submodule.sh | |
parent | Git 2.9-rc0 (diff) | |
download | git-a87bcd6d47d545402ab80ae71a39531997eb6f6f.tar.xz git-a87bcd6d47d545402ab80ae71a39531997eb6f6f.zip |
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-x | git-submodule.sh | 2 |
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) |