TypeError in git repository
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Breezy |
Fix Released
|
Critical
|
Jelmer Vernooij |
Bug Description
I was excited to try brz 3.0a1. I installed with `pip install brz`. When I first ran `brz --version` it required that I install `dulwich` for `brz-git` and I did a `pip install dulwich`. Then I went to a git repository and ran `brz log`. I got the following error:
$ brz log
brz: ERROR: TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Traceback (most recent call last):
File "/home/
return the_callable(*args, **kwargs)
File "/home/
ret = run(*run_argv)
File "/home/
return self.run(
File "/home/
return self._operation
File "/home/
self.cleanups, self.func, *args, **kwargs)
File "/home/
result = func(*args, **kwargs)
File "/home/
result = func(*args, **kwargs)
File "/home/
Logger(b, rqst).show(lf)
File "/home/
self.
File "/home/
generator = self._generator
File "/home/
return _DefaultLogGene
File "/home/
self.
File "/home/
d = self.get_tag_dict()
File "/home/
for (ref_name, tag_name, peeled, unpeeled) in self.branch.
File "/home/
self._tag_refs = list(self.
File "/home/
for ref_name, unpeeled in viewitems(
File "/home/
keys = self.keys(base)
File "/home/
return self.allkeys()
File "/home/
keys.
File "/home/
if (first_
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
brz 3.0a1 on python 3.6.5 (Linux-
sid)
arguments: ['/home/
plugins: bash_completion
commitfromn
fastimport[
netrc_
repodebug[
encoding: 'utf-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
It looks like a Python3 issue with strings/bytes and it's possible that I have old plugins or old BZR setup that is interfering.
Related branches
- Martin Packman: Approve
-
Diff: 61 lines (+24/-7)2 files modifiedbreezy/git/tests/test_transportgit.py (+23/-6)
breezy/git/transportgit.py (+1/-1)
Changed in brz: | |
status: | In Progress → Fix Committed |
Changed in brz: | |
status: | Fix Committed → Fix Released |
Looks like a lack of test coverage.