Commit cd03317c authored by w-e-w's avatar w-e-w

--filter=blob:none

Co-Authored-By: default avatarAarni Koskela <akx@iki.fi>
Co-Authored-By: default avatarcatboxanon <122327233+catboxanon@users.noreply.github.com>
parent bf5e5f42
......@@ -345,12 +345,12 @@ def install_extension_from_url(dirname, url, branch_name=None):
shutil.rmtree(tmpdir, True)
if not branch_name:
# if no branch is specified, use the default branch
with git.Repo.clone_from(url, tmpdir, depth=1) as repo:
with git.Repo.clone_from(url, tmpdir, filter=['blob:none']) as repo:
repo.remote().fetch()
for submodule in repo.submodules:
submodule.update()
else:
with git.Repo.clone_from(url, tmpdir, depth=1, branch=branch_name) as repo:
with git.Repo.clone_from(url, tmpdir, filter=['blob:none'], branch=branch_name) as repo:
repo.remote().fetch()
for submodule in repo.submodules:
submodule.update()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment