X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=git-submodule.sh;h=92be0feb5840c055061f680a45eef6c8f4ebda2d;hb=d22d53db6550d9acc773c3896869cba812f7afb5;hp=1c39b593a628cc94d24d227cc5d92e00ac5e71ed;hpb=34a5d35bbd6164cfbe08f5f14e359867ce80955b;p=git.git diff --git a/git-submodule.sh b/git-submodule.sh index 1c39b593a..92be0feb5 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -634,6 +634,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 (