submodule: explain first attempt failure clearly
[gitweb.git] / git-submodule.sh
index b5f2beee60ab59a04b5b236da8df39403009db1b..cc750b57b23de89d95f863494fa8f213d7ce4950 100755 (executable)
@@ -593,7 +593,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