diff options
author | RJ Ryan <rryan@mixxx.org> | 2013-10-23 20:26:27 -0400 |
---|---|---|
committer | RJ Ryan <rryan@mixxx.org> | 2013-10-23 20:26:27 -0400 |
commit | 571476da25ee14224d0fa578d561d1f6b92c7861 (patch) | |
tree | bf81af08ccb003457abafe964974a52f1b4127f8 /build/util.py | |
parent | 7a3d9d03b6491d1a5a7ec5f550a74c2226435a53 (diff) |
Prevent exception running on a tarball export.
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 '')) |