From af8622240c4c936dd4902350bd359b10550b1c2b Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Thu, 5 Mar 2026 19:20:05 -0800 Subject: [PATCH] Remove redundant formatting --- installer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer.py b/installer.py index 39227aeb5..c13f751b1 100644 --- a/installer.py +++ b/installer.py @@ -1275,8 +1275,8 @@ def get_version(force=False): try: origin = sub_run('git remote get-url origin', check=True)[0].stdout branch_name = sub_run('git rev-parse --abbrev-ref HEAD', check=True)[0].stdout - version['url'] = origin.replace('\n', '').removesuffix('.git') + '/tree/' + branch_name.replace('\n', '') - version['branch'] = branch_name.replace('\n', '') + version['url'] = origin.removesuffix('.git') + '/tree/' + branch_name + version['branch'] = branch_name if version['branch'] == 'HEAD': log.warning('Version: detached state detected') except Exception as e: