Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
b07b7057
Commit
b07b7057
authored
Mar 09, 2023
by
vladlearns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: removed scripts and added a flag to launch.py
parent
09c73710
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
extensions/update-all.bat
extensions/update-all.bat
+0
-1
extensions/update-all.sh
extensions/update-all.sh
+0
-3
launch.py
launch.py
+13
-1
No files found.
extensions/update-all.bat
deleted
100644 → 0
View file @
09c73710
for
/d
%%i
in
(*)
do
@if
exist
"
%%i
\.git"
(
echo
Pulling
updates
for
%%i
...
&
git
-C
"
%%i
"
pull
)
\ No newline at end of file
extensions/update-all.sh
deleted
100644 → 0
View file @
09c73710
ls
|
while
read dir
;
do if
[
-d
"
$dir
/.git"
]
;
then
echo
"Pulling updates for
$dir
..."
;
git
-C
"
$dir
"
pull
;
fi
;
done
\ No newline at end of file
launch.py
View file @
b07b7057
...
...
@@ -161,7 +161,15 @@ def git_clone(url, dir, name, commithash=None):
if
commithash
is
not
None
:
run
(
f
'"{git}" -C "{dir}" checkout {commithash}'
,
None
,
"Couldn't checkout {name}'s hash: {commithash}"
)
def
git_pull_recursive
(
dir
):
for
subdir
,
_
,
_
in
os
.
walk
(
dir
):
if
os
.
path
.
exists
(
os
.
path
.
join
(
subdir
,
'.git'
)):
try
:
output
=
subprocess
.
check_output
([
'git'
,
'-C'
,
subdir
,
'pull'
])
print
(
f
"Pulled changes for repository in '{subdir}':
\n
{output.decode('utf-8').strip()}
\n
"
)
except
subprocess
.
CalledProcessError
as
e
:
print
(
f
"Couldn't perform 'git pull' on repository in '{subdir}':
\n
{e.output.decode('utf-8').strip()}
\n
"
)
def
version_check
(
commit
):
try
:
import
requests
...
...
@@ -247,6 +255,7 @@ def prepare_environment():
args
,
_
=
parser
.
parse_known_args
(
sys
.
argv
)
sys
.
argv
,
_
=
extract_arg
(
sys
.
argv
,
'-f'
)
sys
.
argv
,
update_all_extensions
=
extract_arg
(
sys
.
argv
,
'--update-all-extensions'
)
sys
.
argv
,
skip_torch_cuda_test
=
extract_arg
(
sys
.
argv
,
'--skip-torch-cuda-test'
)
sys
.
argv
,
skip_python_version_check
=
extract_arg
(
sys
.
argv
,
'--skip-python-version-check'
)
sys
.
argv
,
reinstall_xformers
=
extract_arg
(
sys
.
argv
,
'--reinstall-xformers'
)
...
...
@@ -312,6 +321,9 @@ def prepare_environment():
if
update_check
:
version_check
(
commit
)
if
update_all_extensions
:
git_pull_recursive
(
dir_extensions
)
if
"--exit"
in
sys
.
argv
:
print
(
"Exiting because of --exit argument"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment