update installer

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-09-15 08:58:34 +02:00
parent 9fe7170248
commit d86916b8eb
+3 -2
View File
@@ -385,8 +385,6 @@ def git(arg: str, folder: str | None= None, ignore: bool = False, optional: bool
# reattach as needed as head can get detached
def branch(folder=None):
if args.experimental or args.skip_git or args.skip_all:
return None
t_start = time.time()
if not os.path.exists(os.path.join(folder or os.curdir, '.git')):
return None
@@ -406,6 +404,9 @@ def branch(folder=None):
except Exception:
b = git('git rev-parse --abbrev-ref HEAD', folder, optional=True)
if args.experimental or args.skip_git or args.skip_all:
return b
if 'main' in b:
tgt = 'main'
elif 'master' in b: