diff options
Diffstat (limited to 'build/util.py')
-rw-r--r-- | build/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/util.py b/build/util.py index 328611d5ca..d47ae31baf 100644 --- a/build/util.py +++ b/build/util.py @@ -157,7 +157,7 @@ def write_build_header(path): branch_name = get_branch_name() modified = len(get_modified()) > 0 # Do not emit BUILD_BRANCH on release branches. - if not branch_name.startswith('release'): + if branch_name and not branch_name.startswith('release'): f.write('#define BUILD_BRANCH "%s"\n' % branch_name) f.write('#define BUILD_REV "%s%s"\n' % (get_revision(), '+' if modified else '')) |