Fix url formatting in update module

pull/4384/head
awsr 2025-11-08 14:54:34 -08:00
parent 113c582171
commit 0bb0bf4681
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ def get_version():
origin = origin.splitlines()[0]
version.branch = i.git('rev-parse --abbrev-ref HEAD')
version.branch = version.branch.splitlines()[0]
version.url = origin + '/tree/' + version.branch
version.url = origin.removesuffix('.git') + '/tree/' + version.branch
ver = i.git('log --pretty=format:"%h %ad" -1 --date=short')
ver = ver.splitlines()[0]