From e31f410eb13eda399deb90c1e796992224abd88d Mon Sep 17 00:00:00 2001 From: Nourepide Date: Thu, 30 Nov 2023 20:50:25 +0300 Subject: [PATCH] Fix master init branch in Install scripts. --- install.bat | 4 ++-- install.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install.bat b/install.bat index ae43174..9cb6aa1 100644 --- a/install.bat +++ b/install.bat @@ -107,7 +107,7 @@ where /q git && if !ERRORLEVEL! equ 0 ( if not exist ".git" ( echo [Allor]: This directory is not a git repository. Initializing a new repository. - git init + git init -b main git remote add origin https://github.com/Nourepide/ComfyUI-Allor git fetch origin main git reset --hard origin/main @@ -140,7 +140,7 @@ if not (Path('.git').exists() or Path('.git').is_dir()): print("[Allor]: This directory is not a git repository. Initializing a new repository.") - repo = Repo.init() + repo = Repo.init(initial_branch='main') origin = repo.create_remote('origin', 'https://github.com/Nourepide/ComfyUI-Allor') origin.fetch('main') repo.git.reset('--hard', 'origin/main') diff --git a/install.sh b/install.sh index 5bfce6e..3d0746c 100644 --- a/install.sh +++ b/install.sh @@ -50,7 +50,7 @@ if command -v git >/dev/null 2>&1; then if [ ! -d ".git" ]; then echo -e "\e[34m[Allor]\e[0m: This directory is not a git repository. Initializing a new repository." - git init + git init -b main git remote add origin https://github.com/Nourepide/ComfyUI-Allor git pull origin master else @@ -70,7 +70,7 @@ from pathlib import Path if not (Path(".git").exists() or Path(".git").is_dir()): print("\033[94m[Allor]\033[0m: This directory is not a git repository. Initializing a new repository.") - repo = Repo.init() + repo = Repo.init(initial_branch='main') origin = repo.create_remote("origin", "https://github.com/Nourepide/ComfyUI-Allor") origin.fetch("main") repo.git.reset("--hard", "origin/main")