mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-30 11:11:15 +00:00
i
This commit is contained in:
@@ -15,6 +15,7 @@ from modules import cmd_args, errors
|
|||||||
from modules.paths_internal import script_path, extensions_dir
|
from modules.paths_internal import script_path, extensions_dir
|
||||||
from modules.timer import startup_timer
|
from modules.timer import startup_timer
|
||||||
from modules import logging_config
|
from modules import logging_config
|
||||||
|
from modules_forge import forge_version
|
||||||
|
|
||||||
args, _ = cmd_args.parser.parse_known_args()
|
args, _ = cmd_args.parser.parse_known_args()
|
||||||
logging_config.setup_logging(args.loglevel)
|
logging_config.setup_logging(args.loglevel)
|
||||||
@@ -70,7 +71,7 @@ def commit_hash():
|
|||||||
|
|
||||||
|
|
||||||
@lru_cache()
|
@lru_cache()
|
||||||
def git_tag():
|
def git_tag_a1111():
|
||||||
try:
|
try:
|
||||||
return subprocess.check_output([git, "-C", script_path, "describe", "--tags"], shell=False, encoding='utf8').strip()
|
return subprocess.check_output([git, "-C", script_path, "describe", "--tags"], shell=False, encoding='utf8').strip()
|
||||||
except Exception:
|
except Exception:
|
||||||
@@ -85,6 +86,10 @@ def git_tag():
|
|||||||
return "<none>"
|
return "<none>"
|
||||||
|
|
||||||
|
|
||||||
|
def git_tag():
|
||||||
|
return 'f' + forge_version.version + '-' + git_tag_a1111()
|
||||||
|
|
||||||
|
|
||||||
def run(command, desc=None, errdesc=None, custom_env=None, live: bool = default_command_live) -> str:
|
def run(command, desc=None, errdesc=None, custom_env=None, live: bool = default_command_live) -> str:
|
||||||
if desc is not None:
|
if desc is not None:
|
||||||
print(desc)
|
print(desc)
|
||||||
|
|||||||
1
modules_forge/forge_version.py
Normal file
1
modules_forge/forge_version.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
version = '0.0.1'
|
||||||
Reference in New Issue
Block a user