Force-clean the local git repo, even if it has some unmerged changes

This commit is contained in:
cmdr2 2023-08-15 13:31:08 +05:30
parent 0adb7831e7
commit 6a216be5cb
2 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,8 @@ if "%update_branch%"=="" (
@cd sd-ui-files
@call git add -A .
@call git stash
@call git reset --hard
@call git -c advice.detachedHead=false checkout "%update_branch%"
@call git pull

View File

@ -29,6 +29,8 @@ if [ -f "scripts/install_status.txt" ] && [ `grep -c sd_ui_git_cloned scripts/in
cd sd-ui-files
git add -A .
git stash
git reset --hard
git -c advice.detachedHead=false checkout "$update_branch"
git pull