#6074 UnicodeDecodeError on git tree object

unreleased
duplicate
nobody
None
General
nobody
2015-02-24
2013-04-09
No

https://sourceforge.net/p/paschatti/code/ci/73a6516764b04a2819f9187bf49d03f4ef554f9c/tree/ causes the following error. Also occurs when doing a regular refresh of the repo.

File '/var/local/allura/ForgeGit/forgegit/model/git_repo.py', line 242 in refresh_tree_info
  for o in tree:
File '/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.2.RC1.20130214-py2.7.egg/git/objects/tree.py', line 225 in __iter__
  return self._iter_convert_to_object(self._cache)
File '/var/local/env-allura/lib/python2.7/site-packages/gitdb-0.5.4-py2.7-linux-x86_64.egg/gitdb/util.py', line 238 in __getattr__
  self._set_cache_(attr)
File '/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.2.RC1.20130214-py2.7.egg/git/objects/tree.py', line 145 in _set_cache_
  self._cache = tree_entries_from_data(ostream.read())
File '/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.2.RC1.20130214-py2.7.egg/git/objects/fun.py', line 73 in tree_entries_from_data
  name_enc = name.decode("utf-8")
File '/var/local/env-base/lib64/python2.7/encodings/utf_8.py', line 16 in decode
  return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xf6 in position 1: invalid start byte

Discussion

  • Dave Brondsema

    Dave Brondsema - 2013-04-09
    • Milestone: forge-may-03 --> forge-apr-19
     
  • Same as [#6000]

     

    Related

    Tickets: #6000

    • status: open --> duplicate
     

Log in to post a comment.