summaryrefslogtreecommitdiffstats
path: root/build/util.py
diff options
context:
space:
mode:
authorRJ Ryan <rryan@mixxx.org>2013-10-23 20:26:27 -0400
committerRJ Ryan <rryan@mixxx.org>2013-10-23 20:26:27 -0400
commit571476da25ee14224d0fa578d561d1f6b92c7861 (patch)
treebf81af08ccb003457abafe964974a52f1b4127f8 /build/util.py
parent7a3d9d03b6491d1a5a7ec5f550a74c2226435a53 (diff)
Prevent exception running on a tarball export.
Diffstat (limited to 'build/util.py')
-rw-r--r--build/util.py2
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 ''))