标签:13 git chenjy Permission py repo OSError home line
xxxx@ubuntu:~/work$ repo sync
Traceback (most recent call last):
File "/home/chenjy/git-repo/main.py", line 513, in <module>
_Main(sys.argv[1:])
File "/home/chenjy/git-repo/main.py", line 489, in _Main
result = repo._Run(argv) or 0
File "/home/chenjy/git-repo/main.py", line 162, in _Run
result = cmd.Execute(copts, cargs)
File "/home/chenjy/git-repo/subcmds/sync.py", line 624, in Execute
rp.PreSync()
File "/home/chenjy/git-repo/project.py", line 2770, in PreSync
base = self.GetBranch(cb).merge
File "/home/chenjy/git-repo/project.py", line 727, in GetBranch
return self.config.GetBranch(name)
File "/home/chenjy/git-repo/git_config.py", line 198, in GetBranch
b = Branch(self, name)
File "/home/chenjy/git-repo/git_config.py", line 677, in __init__
self.merge = self._Get('merge')
File "/home/chenjy/git-repo/git_config.py", line 720, in _Get
return self._config.GetString(key, all_keys = all_keys)
File "/home/chenjy/git-repo/git_config.py", line 129, in GetString
v = self._cache[_key(name)]
File "/home/chenjy/git-repo/git_config.py", line 246, in _cache
self._cache_dict = self._Read()
File "/home/chenjy/git-repo/git_config.py", line 253, in _Read
self._SaveJson(d)
File "/home/chenjy/git-repo/git_config.py", line 284, in _SaveJson
os.remove(self._json)
OSError: [Errno 13] Permission denied: '/home/xxx/work/.repo/repo/.git/.repo_config.json'
解决:
chmod -R 777 ./repo/
标签:13,git,chenjy,Permission,py,repo,OSError,home,line 来源: https://blog.csdn.net/qq_42292556/article/details/119250524
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。