aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-13 14:51:04 +0300
committerGitHub <noreply@github.com>2023-07-13 14:51:04 +0300
commit262ec8ecdaf10d8fe49d0227e24bd3a1459e87b5 (patch)
treec4ce7521adae9c2893a44461ea54a71548d4a343 /modules
parented0512c76f88a4fb9442343423ad18fc18909bbd (diff)
parent75f56406cede0095eb0e5dcc4e0d5759063e89dc (diff)
Merge pull request #11707 from wfjsw/revert-11244
Revert #11244
Diffstat (limited to 'modules')
-rw-r--r--modules/shared.py1
-rw-r--r--modules/ui_extensions.py17
2 files changed, 2 insertions, 16 deletions
diff --git a/modules/shared.py b/modules/shared.py
index b7518de6..48478a68 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -391,7 +391,6 @@ options_templates.update(options_section(('system', "System"), {
"print_hypernet_extra": OptionInfo(False, "Print extra hypernetwork information to console."),
"list_hidden_files": OptionInfo(True, "Load models/files in hidden directories").info("directory is hidden if its name starts with \".\""),
"disable_mmap_load_safetensors": OptionInfo(False, "Disable memmapping for loading .safetensors files.").info("fixes very slow loading speed in some cases"),
- "github_proxy": OptionInfo("None", "Github proxy", ui_components.DropdownEditable, lambda: {"choices": ["None", "ghproxy.com", "hub.yzuu.cf", "hub.njuu.cf", "hub.nuaa.cf"]}).info("for custom inputs will just replace github.com with the input"),
}))
options_templates.update(options_section(('training', "Training"), {
diff --git a/modules/ui_extensions.py b/modules/ui_extensions.py
index a208012d..dff522ef 100644
--- a/modules/ui_extensions.py
+++ b/modules/ui_extensions.py
@@ -325,17 +325,6 @@ def normalize_git_url(url):
return url
-def github_proxy(url):
- proxy = shared.opts.github_proxy
-
- if proxy == 'None':
- return url
- if proxy == 'ghproxy.com':
- return "https://ghproxy.com/" + url
-
- return url.replace('github.com', proxy)
-
-
def install_extension_from_url(dirname, url, branch_name=None):
check_access()
@@ -346,8 +335,6 @@ def install_extension_from_url(dirname, url, branch_name=None):
assert url, 'No URL specified'
- url = github_proxy(url)
-
if dirname is None or dirname == "":
*parts, last_part = url.split('/')
last_part = normalize_git_url(last_part)
@@ -367,12 +354,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, filter=['blob:none'], verbose=False) 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, filter=['blob:none'], branch=branch_name, verbose=False) 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()