From 33e27704162d19095f144fe89f9bbb4a83fade3f Mon Sep 17 00:00:00 2001 From: Christoph Otto Date: Tue, 28 Sep 2010 20:28:40 -0700 Subject: [PATCH] fix commit message processing --- github/github.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github/github.py b/github/github.py index 86c60ed..1ae6df4 100644 --- a/github/github.py +++ b/github/github.py @@ -107,8 +107,8 @@ def _upgrade_db(self, db): commit_msg = '' while not re.match(r'[0-9a-f]{40}', line) and not line.startswith('git-svn-id:'): if len(line) > 0: - if commit_msg: - line = commit_msg + if not commit_msg: + commit_msg = line else: commit_msg = commit_msg + "\n" + line line = revmap_fd.readline()[0:-1]