diff --git a/gunicorn/__init__.py b/gunicorn/__init__.py index abb29389..6bc04c60 100644 --- a/gunicorn/__init__.py +++ b/gunicorn/__init__.py @@ -15,7 +15,8 @@ if os.environ.get('release') != "true": stdin, stdout, stderr = popen3("git rev-parse --short HEAD --") error = stderr.read() if not error: - minor_tag = ".%s-git" % stdout.read() + git_tag = stdout.read()[:-1] + minor_tag = ".%s-git" % git_tag except OSError: pass else: