Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#13231 from der3318/better-support-fo…
Browse files Browse the repository at this point in the history
…r-portable-git

Better Support for Portable Git
  • Loading branch information
AUTOMATIC1111 authored Sep 30, 2023
2 parents ee8e987 + 0ad38a9 commit df48222
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions webui.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@echo off

if not defined PYTHON (set PYTHON=python)
if defined GIT (set "GIT_PYTHON_GIT_EXECUTABLE=%GIT%")
if not defined VENV_DIR (set "VENV_DIR=%~dp0%venv")

set SD_WEBUI_RESTART=tmp/restart
Expand Down
2 changes: 2 additions & 0 deletions webui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ fi
if [[ -z "${GIT}" ]]
then
export GIT="git"
else
export GIT_PYTHON_GIT_EXECUTABLE="${GIT}"
fi

# python3 venv without trailing slash (defaults to ${install_dir}/${clone_dir}/venv)
Expand Down

0 comments on commit df48222

Please sign in to comment.