summaryrefslogtreecommitdiff
path: root/gbp/dch.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2012-06-18 16:20:39 +0300
committerGuido Günther <agx@sigxcpu.org>2012-06-30 09:35:03 +0200
commit1e8597804ff33ec7e826e77b94fd371d4be9ef29 (patch)
tree81af7335957ac2bab2339b316ffbe54ee2760cb7 /gbp/dch.py
parent41482a3b5cd36ac7b1fd53079f2a05e5b4fbc99e (diff)
GitRepository: make get_commit_info() more robust
Now uses git-show instead of git-log. This is needed for further enhancements (namely to get name-status for merge commits). Also, use null-character as the field separator which makes parsing more reliable. The method now returns 'body' of the commit message as is, without stripping or splitting to lines. In addition, get_commit_info() now uses GitArgs and _git_inout() instead of the deprecated _git_getoutput(). Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/dch.py')
-rw-r--r--gbp/dch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/dch.py b/gbp/dch.py
index ddd5e8e..dc0149c 100644
--- a/gbp/dch.py
+++ b/gbp/dch.py
@@ -106,7 +106,7 @@ def format_changelog_entry(commit_info, options, last_commit=False):
GitRepository.get_commit_info()). If last_commit is not False,
then this entry is the last one in the series."""
entry = [commit_info['subject']]
- body = commit_info['body']
+ body = commit_info['body'].splitlines()
commitid = commit_info['id']
(git_dch_cmds, body) = extract_git_dch_cmds(body, options)