"bzr ignore /" crashes: IndexError: string index out of range
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Gordon Tyler |
Bug Description
bzr ignore / src/www/teacher/
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
if (name_pattern[0] == '/' or
IndexError: string index out of range
bzr 1.13.1 on python 2.6.2 (linux2)
arguments: ['/usr/bin/bzr', 'ignore', '/', 'src/www/teacher/']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_AU.UTF-8'
plugins:
bzrtools /usr/lib/
launchpad /usr/lib/
netrc_
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
Related branches
- Andrew Bennetts: Approve
- John A Meinel: Approve
-
Diff: 64 lines (+34/-2)2 files modifiedbzrlib/globbing.py (+6/-2)
bzrlib/tests/test_globbing.py (+28/-0)
summary: |
- bzr crashes on ignore folder + "bzr ignore /" crashes |
summary: |
- "bzr ignore /" crashes + "bzr ignore /" crashes: IndexError: string index out of range |
I can reproduce this with trunk:
bzr init /tmp/ignore-test
cd /tmp/ignore-test
bzr ignore / # causes traceback
It's probably a shallow bug.