repo sync hangs

If you experience this issue you should try:

$ sudo sysctl -w net.ipv4.tcp_window_scaling=0
$ repo sync -j1

The first one is to deal with the TCP Window Scaling issue.

The second executes the sync on a single thread to make sure nothing gets messy.