id summary reporter owner description type status priority component severity resolution keywords cc release 8639 PyGIT._get_branches fails with ValueError on commit messages with line feeds Carsten Klein Herbert Valerio Riedel "I have a commit here that includes a subject line that includes !^M characters. This will cause get_branches to fail when trying to unpack the malformed lines resulting from splitting on linefeed boundary. Here is a proposed fast solution that will replace all !^M characters so that retrieving the branch information does not fail {{{ def _get_branches(self): ""returns list of (local) branches, with active (= HEAD) one being the first item"" result = [] for e in self.repo.branch(""-v"", ""--no-abbrev"").replace('\r', '/CTRL-R').splitlines(): bname, bsha = e[1:].strip().split()[:2] if e.startswith('*'): result.insert(0, (bname, bsha)) else: result.append((bname, bsha)) return result }}} " defect closed normal GitPlugin normal wontfix 0.12