mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-09 06:27:38 +01:00
Fix error with submodule cloning
Call `git submodule update --init` manually rather than using GitPython's submodule API, as that fails with the following repo as a submodule: https://files.creativekara.fr/git/naturalslopeslib.git
This commit is contained in:
parent
9e95b69c11
commit
72a95ecfca
@ -60,9 +60,7 @@ def clone_repo(urlstr, ref=None, recursive=False):
|
|||||||
origin.fetch()
|
origin.fetch()
|
||||||
repo.git.checkout(ref)
|
repo.git.checkout(ref)
|
||||||
|
|
||||||
if recursive:
|
repo.git.submodule('update', '--init')
|
||||||
for submodule in repo.submodules:
|
|
||||||
submodule.update(init=True)
|
|
||||||
|
|
||||||
yield repo
|
yield repo
|
||||||
shutil.rmtree(gitDir)
|
shutil.rmtree(gitDir)
|
||||||
|
Loading…
Reference in New Issue
Block a user