mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-08 22:17:34 +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()
|
||||
repo.git.checkout(ref)
|
||||
|
||||
if recursive:
|
||||
for submodule in repo.submodules:
|
||||
submodule.update(init=True)
|
||||
repo.git.submodule('update', '--init')
|
||||
|
||||
yield repo
|
||||
shutil.rmtree(gitDir)
|
||||
|
Loading…
Reference in New Issue
Block a user