зеркало из https://github.com/microsoft/git.git
Fix submodule sync with relative submodule URLs
Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Родитель
064bfbde45
Коммит
baede9f803
|
@ -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
|
||||
(
|
||||
|
|
Загрузка…
Ссылка в новой задаче