Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import fails for branches with regex-special-chars in names #59

Open
Saviq opened this issue Jun 10, 2013 · 0 comments
Open

Import fails for branches with regex-special-chars in names #59

Saviq opened this issue Jun 10, 2013 · 0 comments

Comments

@Saviq
Copy link

Saviq commented Jun 10, 2013

The branch names in import isn't escaped for regex-special-chars, an example with "++" in the branch name:

Traceback (most recent call last):
File "/usr/bin/git-bzr", line 709, in
sys.exit(main(sys.argv))
File "/usr/bin/git-bzr", line 703, in main
return func(argv[2:])
File "/usr/bin/git-bzr", line 576, in cmd_import
if branch_exists(branch):
File "/usr/bin/git-bzr", line 107, in branch_exists
matcher = re.compile(r'\s%s$' % branch)
File "/usr/lib/python2.7/re.py", line 190, in compile
return _compile(pattern, flags)
File "/usr/lib/python2.7/re.py", line 242, in _compile
raise error, v # invalid expression
sre_constants.error: multiple repeat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant