Arch Linux Python 3.3.0 を使用しています。最新のリポジトリをダウンロードしました。Google の例からリポジトリを初期化しようとすると、次のエラーが発生します。
[username@otp-username-l2 teste]$ repo init -u https://android.googlesource.com/platform/manifest
Traceback (most recent call last):
File "/home/username/bin/repo", line 738, in <module>
main(sys.argv[1:])
File "/home/username/bin/repo", line 705, in main
_Init(args)
File "/home/username/bin/repo", line 234, in _Init
_CheckGitVersion()
File "/home/username/bin/repo", line 274, in _CheckGitVersion
if not ver_str.startswith('git version '):
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
新しいリポジトリの初期化を余儀なくされた理由は、すでに初期化されているリポジトリからコミットを行う必要があるためですが、どこからでも git ユーザーを変更しましたが、まだこれを取得しています:
Writing objects: 100% (12/12), 966 bytes, done.
Total 12 (delta 11), reused 0 (delta 0)
o ssh://new.username@128.224.0.74:29418/stelvio/mm
![remote rejected] branchname -> refs/for/main_dev (you are not committer oldusername@email.com)
error: failed to push some refs to 'ssh://new.username@128.224.0.74:29418/project/one'