最近无论在公司还是在家同步Android代码,都会不断出现“remote end hung up unexpectedly”的问题。Google了一下貌似是新donut搞的鬼,老外以为世界上所有的人都拥有高速稳定的宽带网络,把重试机制干掉了。因此Python脚本修改如下
- go to the folder where you made “repo init” some days ago
- open .repo/repo/subcmds/sync.py
- correct _Fetch function (program will try to sync even without network after this change:-)) – add “while True:” at line 6, “break” at line 9, remove “sys.exit(1)” at line 11.
1 | |