summaryrefslogtreecommitdiff
path: root/git-submodule.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-xgit-submodule.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/git-submodule.sh b/git-submodule.sh
index c3d0d24bc7..65178ae8e3 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -639,6 +639,14 @@ cmd_sync()
do
name=$(module_name "$path")
url=$(git config -f .gitmodules --get submodule."$name".url)
+
+ # Possibly a url relative to parent
+ case "$url" in
+ ./*|../*)
+ url=$(resolve_relative_url "$url") || exit
+ ;;
+ esac
+
if test -e "$path"/.git
then
(