Merge branch 'bc/master-diff-hunk-header-fix'
[git/git.git] / git-submodule.sh
index c3d0d24..65178ae 100755 (executable)
@@ -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
                (