# Expect to have two filenames for renames and copies
if status[0] in ['R', 'C']:
filepath = elements.pop(0) + b'\x00' + filepath
- result[status].append(filepath)
+ result[status].append(filepath.decode())
return result
>>> fname = os.path.join(repo.path, "test_status")
>>> ret = shutil.copy(os.path.join(repo.path, ".git/HEAD"), fname)
>>> list(repo.status().items())
- [('??', [b'test_status'])]
+ [('??', ['test_status'])]
>>> list(repo.status(['bla*']).items())
[]
>>> list(repo.status(['te*']).items())
- [('??', [b'test_status'])]
+ [('??', ['test_status'])]
>>> repo.add_files(repo.path, force=True)
>>> repo.commit_all(msg='added %s' % fname)
>>> _ = repo._git_inout('mv', [fname, fname + 'new'])
>>> list(repo.status().items())
- [('R ', [b'test_status\x00test_statusnew'])]
+ [('R ', ['test_status\x00test_statusnew'])]
"""