diff --git a/setup.py b/setup.py index 413257f..d75d78e 100644 --- a/setup.py +++ b/setup.py @@ -9,9 +9,7 @@ except: def get_version(): import subprocess rev = subprocess.check_output(['git', 'rev-list', 'HEAD', '--count']).strip() - if rev: - return u'0.%s' % rev - return u'unknown' + return rev or u'unknown' setup(name='oxtimelines', version='0.%s' % get_version() ,