diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-05-20 06:08:08 +0000 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-05-20 06:08:08 +0000 |
commit | bf5e5f4269a263cce0abb993419302edb5b5b8d0 (patch) | |
tree | 76c7ecdc2df71747e7ef3e03a42280e063916877 /modules/ui_extensions.py | |
parent | 39ec4f06ffb2c26e1298b2c5d80874dc3fd693ac (diff) | |
download | stable-diffusion-webui-gfx803-bf5e5f4269a263cce0abb993419302edb5b5b8d0.tar.gz stable-diffusion-webui-gfx803-bf5e5f4269a263cce0abb993419302edb5b5b8d0.tar.bz2 stable-diffusion-webui-gfx803-bf5e5f4269a263cce0abb993419302edb5b5b8d0.zip |
extensions clone depth 1
Diffstat (limited to 'modules/ui_extensions.py')
-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 ef18f438..88a7381b 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) as repo:
+ with git.Repo.clone_from(url, tmpdir, depth=1) as repo:
repo.remote().fetch()
for submodule in repo.submodules:
submodule.update()
else:
- with git.Repo.clone_from(url, tmpdir, branch=branch_name) as repo:
+ with git.Repo.clone_from(url, tmpdir, depth=1, branch=branch_name) as repo:
repo.remote().fetch()
for submodule in repo.submodules:
submodule.update()
|