osbuild: Don't use linux-user-chroot for git submodules
On the ostree.gnome.org build server, LDAP is used for username lookups, and git aborts if it can't look up the user.
This commit is contained in:
parent
341096f18a
commit
9939f1861d
|
|
@ -63,9 +63,7 @@ def get_vcs_checkout(mirrordir, keytype, uri, dest, branch, overwrite=True):
|
||||||
run_sync(['git', 'submodule', 'init'], cwd=tmp_dest)
|
run_sync(['git', 'submodule', 'init'], cwd=tmp_dest)
|
||||||
have_submodules = _fixup_submodule_references(mirrordir, tmp_dest)
|
have_submodules = _fixup_submodule_references(mirrordir, tmp_dest)
|
||||||
if have_submodules:
|
if have_submodules:
|
||||||
run_sync(['linux-user-chroot',
|
run_sync(['git', 'submodule', 'update'])
|
||||||
'--unshare-net', '--chdir', tmp_dest, '/',
|
|
||||||
'/usr/bin/git', 'submodule', 'update'])
|
|
||||||
os.rename(tmp_dest, dest)
|
os.rename(tmp_dest, dest)
|
||||||
return dest
|
return dest
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue