summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2008-11-13 16:33:00 +0100
committerGuido Guenther <agx@sigxcpu.org>2008-11-13 16:33:00 +0100
commitb7f8efd990498b472de96ee4d68c9f440bbbd04d (patch)
treef265d6e379ce9b9a1cde89822bdaa7f7085aca1a
parenta6f5472e6fc3318173f3fbf02b2520ef37c20b3d (diff)
git-dch: add missing call to escape_commit
-rwxr-xr-xgit-dch6
1 files changed, 4 insertions, 2 deletions
diff --git a/git-dch b/git-dch
index 77d5f15a..3c1667c5 100755
--- a/git-dch
+++ b/git-dch
@@ -61,7 +61,7 @@ def add_changelog_section(msg, distribution, newversion=None, author=None, email
env = """DEBFULLNAME="%s" DEBEMAIL="%s" """ % (author, email)
else:
env = ""
- cmd = "%s dch --no-auto-nmu --distribution=%s %s %s" % (env, distribution, versionopt, msg)
+ cmd = "%s dch --no-auto-nmu --distribution=%s %s %s" % (env, distribution, versionopt, escape_commit(msg))
system(cmd)
@@ -338,7 +338,9 @@ def main(argv):
commit_msg = "UNRELEASED"
commit_author = None
commit_email = None
- add_changelog_section(distribution="UNRELEASED", msg=commit_msg, newversion=options.new_version, author=commit_author, email=commit_email)
+ add_changelog_section(distribution="UNRELEASED", msg=commit_msg,
+ newversion=options.new_version, author=commit_author,
+ email=commit_email)
if commits:
shortlog_to_dch(repo, commits, options)