mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-09-10 23:25:42 +08:00
fix for unknown branch
This commit is contained in:
parent
a42db58911
commit
99504fbca9
2 changed files with 3 additions and 1 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
4.0.1
|
||||
4.0.2-develop1
|
||||
|
|
|
@ -370,6 +370,8 @@ with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "VERSION")) a
|
|||
version = util.parse_version(line)
|
||||
break
|
||||
branch = util.guess_branch(version, env_version, git_branch)
|
||||
if branch is None:
|
||||
branch = "Unknown"
|
||||
version = (version[0].replace("develop", branch), version[1].replace("develop", branch), version[2])
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue