Merge pull request #13231 from der3318/better-support-for-portable-git
Better Support for Portable Git
This commit is contained in:
commit
df48222f3e
|
@ -1,6 +1,7 @@
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
if not defined PYTHON (set PYTHON=python)
|
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")
|
if not defined VENV_DIR (set "VENV_DIR=%~dp0%venv")
|
||||||
|
|
||||||
set SD_WEBUI_RESTART=tmp/restart
|
set SD_WEBUI_RESTART=tmp/restart
|
||||||
|
|
2
webui.sh
2
webui.sh
|
@ -51,6 +51,8 @@ fi
|
||||||
if [[ -z "${GIT}" ]]
|
if [[ -z "${GIT}" ]]
|
||||||
then
|
then
|
||||||
export GIT="git"
|
export GIT="git"
|
||||||
|
else
|
||||||
|
export GIT_PYTHON_GIT_EXECUTABLE="${GIT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# python3 venv without trailing slash (defaults to ${install_dir}/${clone_dir}/venv)
|
# python3 venv without trailing slash (defaults to ${install_dir}/${clone_dir}/venv)
|
||||||
|
|
Loading…
Reference in New Issue