From 252d594474c9a291d50ddd464c19fdc54b1b227a Mon Sep 17 00:00:00 2001 From: benoitc Date: Thu, 5 Aug 2010 21:41:40 +0200 Subject: [PATCH] strip line ending --- gunicorn/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: