Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-05-30 08:04:12 +0300
committerJunio C Hamano <gitster@pobox.com>2018-05-30 08:04:12 +0300
commita173dddf4483ed11b228077078becc8b65174b46 (patch)
treec63671919033c027195c496c5a162f1e175657db /git-submodule.sh
parent017b7c52fc00897c72f6c4808ded43c4c5f9c5b8 (diff)
parente30d833671d634ea6455fd49596ac7339a4915b1 (diff)
Merge branch 'sb/submodule-update-try-harder'
"git submodule update" attempts two different kinds of "git fetch" against the upstream repository to grab a commit bound at the submodule's path, but it incorrectly gave up if the first kind (i.e. a normal fetch) failed, making the second "last resort" one (i.e. fetching an exact commit object by object name) ineffective. This has been corrected. * sb/submodule-update-try-harder: git-submodule.sh: try harder to fetch a submodule
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 fd0fe081a8..78073cd87d 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -630,7 +630,7 @@ cmd_update()
# is not reachable from a ref.
is_tip_reachable "$sm_path" "$sha1" ||
fetch_in_submodule "$sm_path" $depth ||
- die "$(eval_gettext "Unable to fetch in submodule path '\$displaypath'")"
+ say "$(eval_gettext "Unable to fetch in submodule path '\$displaypath'")"
# Now we tried the usual fetch, but $sha1 may
# not be reachable from any of the refs