mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Add .git creation to installer
This commit is contained in:
parent
193fe18c8c
commit
6bbfc40d10
7
webui.py
7
webui.py
@ -117,7 +117,12 @@ def install_dependencies():
|
|||||||
|
|
||||||
|
|
||||||
def update_dependencies(initial_installation=False):
|
def update_dependencies(initial_installation=False):
|
||||||
# run_cmd("git pull", assert_success=True, environment=True) # TODO uncomment before merging (is there a better way?)
|
# Create .git directory if missing
|
||||||
|
if not os.path.isdir(os.path.join(script_dir, ".git")):
|
||||||
|
git_creation_cmd = 'git init -b main && git remote add origin https://github.com/oobabooga/text-generation-webui && git fetch && git remote set-head origin -a && git reset origin/HEAD && git branch --set-upstream-to=origin/HEAD'
|
||||||
|
run_cmd(git_creation_cmd, environment=True, assert_success=True)
|
||||||
|
|
||||||
|
run_cmd("git pull", assert_success=True, environment=True) # TODO is there a better way?
|
||||||
|
|
||||||
# Install the extensions dependencies (only on the first install)
|
# Install the extensions dependencies (only on the first install)
|
||||||
if initial_installation:
|
if initial_installation:
|
||||||
|
Loading…
Reference in New Issue
Block a user