Skip to content

Commit 7b4ccde

Browse files
authored
Modifications to configurator can get the branch name (ExpressLRS#1046)
1 parent b20f908 commit 7b4ccde

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/python/build_flags.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def get_git_version():
131131
os.path.abspath(os.path.join(os.getcwd(), os.pardir)),
132132
search_parent_directories=False)
133133
try:
134-
ver = git_repo.git.describe("--tags", "--exact-match")
134+
ver = re.sub(r".*/", "", git_repo.git.describe("--all", "--exact-match"))
135135
except git.exc.GitCommandError:
136136
try:
137137
ver = git_repo.git.symbolic_ref("-q", "--short", "HEAD")
@@ -181,4 +181,3 @@ def get_git_version():
181181
stm = env.get('PIOPLATFORM', '') in ['ststm32']
182182
if stm:
183183
env['UPLOAD_PROTOCOL'] = 'custom'
184-

0 commit comments

Comments
 (0)