Package: git-buildpackage
Version: 0.4.8
Severity: normal
git-buildpackage calls git branch without --no-color, and is unable to
interpret
output when branch coloring is on.
the attached patch calls branch with --no-color and fixes the issue.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages git-buildpackage depends on:
ii devscripts 2.10.11 Scripts to make the life of a Debi
ii git-core 1:1.5.3.6-1.1 fast, scalable, distributed revisi
ii python 2.4.4-6 An interactive high-level object-o
ii python-support 0.7.5 automated rebuilding support for p
git-buildpackage recommends no packages.
-- no debconf information
--- ../../git_utils.py 2007-11-26 15:48:39.418383714 +1100
+++ /usr/share/python-support/git-buildpackage/gbp/git_utils.py 2007-11-26
15:51:39.000000000 +1100
@@ -41,7 +41,7 @@
def has_branch(self, branch):
"""check if the repository has branch 'branch'"""
self.__check_path()
- for line in self.__git_getoutput('branch')[0]:
+ for line in self.__git_getoutput('branch', ['--no-color'])[0]:
if line.split(' ', 1)[1].strip() == branch:
return True
return False
@@ -57,7 +57,7 @@
def get_branch(self):
"""on what branch is the current working copy"""
self.__check_path()
- for line in self.__git_getoutput('branch')[0]:
+ for line in self.__git_getoutput('branch', ['--no-color'])[0]:
if line.startswith('*'):
return line.split(' ', 1)[1].strip()