Package: git-buildpackage
Version: 0.4.53
Severity: normal
Tags: patch
Hi,
If there is some commit that starts with dashes, git-dch calls dch like this:
dch <options> '--some message starting with dashes'
the message is interpreted by dch as an option, leading to failure to parse
command-line options.
Adding '--' argument before the message fixes this. Patch attached.
Thanks for considering,
dam
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (450, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.29-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages git-buildpackage depends on:
ii devscripts 2.10.50 scripts to make the life of a Debi
ii git-core 1:1.6.3.1-1 fast, scalable, distributed revisi
ii python 2.5.4-2 An interactive high-level object-o
ii python-dateutil 1.4.1-3 powerful extensions to the standar
ii python-support 1.0.3 automated rebuilding support for P
Versions of packages git-buildpackage recommends:
ii pristine-tar 1.00 regenerate pristine tarballs
Versions of packages git-buildpackage suggests:
ii git-load-dirs 1.1.6+nmu2 Import upstream archives into git
-- no debconf information
2ffd8084c071e7ab760ff011aa2dc2c1458273d6 git-dch: separate message from the
options using '--'
diff --git a/git-dch b/git-dch
index 4c1619f..14bb495 100755
--- a/git-dch
+++ b/git-dch
@@ -68,7 +68,7 @@ def spawn_dch(msg='', author=None, email=None,
newversion=False, version=None, r
cmd = '%(env)s dch --no-auto-nmu %(distopt)s %(versionopt)s ' % locals()
if type(msg) == type(''):
- cmd += '"%s"' % escape_commit(msg)
+ cmd += '-- "%s"' % escape_commit(msg)
system(cmd)