summaryrefslogtreecommitdiff
path: root/git-submodule.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-04-10 02:14:26 +0900
committerJunio C Hamano <gitster@pobox.com>2019-04-10 02:14:26 +0900
commit32414ceb854de44a9b4b74c975ae410713a17c99 (patch)
tree32b3a4956c97d6132fd0013bcd68d73fc68eb12b /git-submodule.sh
parentc063a537bedd3b2363494171de2bbd58bf5c66a9 (diff)
parentbd5e567dc75abae58cb364d1e55cbaf67edb8c98 (diff)
downloadgit-32414ceb854de44a9b4b74c975ae410713a17c99.tar.gz
Merge branch 'jt/submodule-fetch-errmsg'
Error message update. * jt/submodule-fetch-errmsg: submodule: explain first attempt failure clearly
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 514ede2596..2c0fb6d723 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -594,7 +594,7 @@ cmd_update()
# is not reachable from a ref.
is_tip_reachable "$sm_path" "$sha1" ||
fetch_in_submodule "$sm_path" $depth ||
- say "$(eval_gettext "Unable to fetch in submodule path '\$displaypath'")"
+ say "$(eval_gettext "Unable to fetch in submodule path '\$displaypath'; trying to directly fetch \$sha1:")"
# Now we tried the usual fetch, but $sha1 may
# not be reachable from any of the refs