mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 10:31:17 -08:00
move git_status to sysinfo
This commit is contained in:
parent
72cfa2829d
commit
6a7042fe2f
2 changed files with 6 additions and 10 deletions
|
|
@ -85,14 +85,6 @@ def git_tag():
|
|||
return "<none>"
|
||||
|
||||
|
||||
@lru_cache()
|
||||
def git_status():
|
||||
try:
|
||||
return subprocess.check_output([git, "-C", script_path, "status"], shell=False, encoding='utf8').strip()
|
||||
except Exception as e:
|
||||
return str(e)
|
||||
|
||||
|
||||
def run(command, desc=None, errdesc=None, custom_env=None, live: bool = default_command_live) -> str:
|
||||
if desc is not None:
|
||||
print(desc)
|
||||
|
|
@ -453,7 +445,6 @@ def prepare_environment():
|
|||
exit(0)
|
||||
|
||||
|
||||
|
||||
def configure_for_tests():
|
||||
if "--api" not in sys.argv:
|
||||
sys.argv.append("--api")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue