diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-05-21 07:42:54 +0000 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-05-21 07:42:54 +0000 |
commit | cd03317c05b5e31d2d7b77d7ddd0e01f45c6064d (patch) | |
tree | b73a933646d067087c991c5a2a77380ff7116f84 /modules | |
parent | bf5e5f4269a263cce0abb993419302edb5b5b8d0 (diff) | |
download | stable-diffusion-webui-gfx803-cd03317c05b5e31d2d7b77d7ddd0e01f45c6064d.tar.gz stable-diffusion-webui-gfx803-cd03317c05b5e31d2d7b77d7ddd0e01f45c6064d.tar.bz2 stable-diffusion-webui-gfx803-cd03317c05b5e31d2d7b77d7ddd0e01f45c6064d.zip |
--filter=blob:none
Co-Authored-By: Aarni Koskela <akx@iki.fi>
Co-Authored-By: catboxanon <122327233+catboxanon@users.noreply.github.com>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/ui_extensions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ui_extensions.py b/modules/ui_extensions.py index 88a7381b..515ec262 100644 --- a/modules/ui_extensions.py +++ b/modules/ui_extensions.py @@ -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()
|