ryan-williams/git-helpers

gb crashes on branches with a "+" in them

Closed this issue · 1 comments

At least that's how I interpret this

$ git b
Traceback (most recent call last):
  File "/Users/danvk/github/git-helpers/aliases/git-b", line 10, in <module>
    BranchInfos()
  File "/Users/danvk/github/git-helpers/util/branch_infos.py", line 67, in __init__
    info = self.branchInfoClass()(line)
  File "/Users/danvk/github/git-helpers/util/branch_info.py", line 69, in __init__
    "Invalid branch line:\n%s\nregex:\n%s" % (line, '\n'.join(self.regex_pieces)))
Exception: Invalid branch line:
  1.0.1+combined           49a288d Generate combined
regex:
(?P<line_begin>^(?:(?P<is_active>\*)| ) )
(?P<name>[a-zA-Z0-9-_/\.]+|\(detached from [a-zA-Z0-9-_/\.]+\)|\(no branch\)|\(no branch, rebasing [a-zA-Z0-9-_/\.]+\)|\(no branch, bisect started on [a-zA-Z0-9-_/\.]+\))
(?P<pre_hash>\s+)
(?P<hash>[0-9a-f]+)
(?:\s\[(?P<tracking_name>[a-zA-Z0-9-_/\.]+|\(detached from [a-zA-Z0-9-_/\.]+\)|\(no branch\)|\(no branch, rebasing [a-zA-Z0-9-_/\.]+\)|\(no branch, bisect started on [a-zA-Z0-9-_/\.]+\))(?:: (?:ahead (?P<ahead>[0-9]+))?(?:, )?(?:behind (?P<behind>[0-9]+))?)?\])?
\s(?P<description>.*)

git branch -vv is cool with plusy branches.

roger. will fix momentarily unless you've already