Skip to content

Commit df48222

Browse files
Merge pull request AUTOMATIC1111#13231 from der3318/better-support-for-portable-git
Better Support for Portable Git
2 parents ee8e987 + 0ad38a9 commit df48222

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

webui.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@echo off
22

33
if not defined PYTHON (set PYTHON=python)
4+
if defined GIT (set "GIT_PYTHON_GIT_EXECUTABLE=%GIT%")
45
if not defined VENV_DIR (set "VENV_DIR=%~dp0%venv")
56

67
set SD_WEBUI_RESTART=tmp/restart

webui.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ fi
5151
if [[ -z "${GIT}" ]]
5252
then
5353
export GIT="git"
54+
else
55+
export GIT_PYTHON_GIT_EXECUTABLE="${GIT}"
5456
fi
5557

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

0 commit comments

Comments
 (0)