mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 02:45:05 +08:00
Extensions info full commit hash
This commit is contained in:
parent
27d96fa608
commit
3f6dcda3e5
@ -173,7 +173,7 @@ def get_info_from_repo_path(path):
|
|||||||
return {
|
return {
|
||||||
'name': os.path.basename(path),
|
'name': os.path.basename(path),
|
||||||
'path': path,
|
'path': path,
|
||||||
'version': run_git(path, 'rev-parse', 'HEAD'),
|
'commit': run_git(path, 'rev-parse', 'HEAD'),
|
||||||
'branch': run_git(path, 'branch', '--show-current'),
|
'branch': run_git(path, 'branch', '--show-current'),
|
||||||
'remote': run_git(path, 'remote', 'get-url', 'origin')
|
'remote': run_git(path, 'remote', 'get-url', 'origin')
|
||||||
}
|
}
|
||||||
@ -186,7 +186,7 @@ def get_extensions(*, enabled, fallback_disabled_extensions=None):
|
|||||||
return {
|
return {
|
||||||
"name": x.name,
|
"name": x.name,
|
||||||
"path": x.path,
|
"path": x.path,
|
||||||
"version": x.version,
|
"commit": x.commit_hash,
|
||||||
"branch": x.branch,
|
"branch": x.branch,
|
||||||
"remote": x.remote,
|
"remote": x.remote,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user