From: Johan Herland Date: Mon, 22 Sep 2008 16:08:31 +0000 (+0200) Subject: Fix submodule sync with relative submodule URLs X-Git-Tag: v1.6.1-rc1~213 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=baede9f803ff7becab815481b004bc983d0422c7;p=git.git Fix submodule sync with relative submodule URLs Signed-off-by: Johan Herland Signed-off-by: Shawn O. Pearce --- 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 (