Browse Source

Fix submodule sync with relative submodule URLs

Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
maint
Johan Herland 16 years ago committed by Shawn O. Pearce
parent
commit
baede9f803
  1. 8
      git-submodule.sh

8
git-submodule.sh

@ -634,6 +634,14 @@ cmd_sync()
do do
name=$(module_name "$path") name=$(module_name "$path")
url=$(git config -f .gitmodules --get submodule."$name".url) 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 if test -e "$path"/.git
then then
( (

Loading…
Cancel
Save