Minor fix to branch name

This commit is contained in:
JSTayco 2023-04-01 10:18:44 -07:00
parent 69deea0979
commit 14dc16ccd4

View File

@ -357,7 +357,7 @@ update_kohya_ss() {
fi
if [ "$MANUAL_BRANCH_SWITCH" = false ]; then
git -C "$DIR" switch "$BRANCH" >&3
git -C "$DIR" switch "$(git rev-parse --abbrev-ref HEAD)" >&3
else
if ! git -C "$DIR" switch "$BRANCH" >&4; then
echo "Branch $BRANCH did not exist. Creating it." >&4