repo-updater: Some syncing fixes
Created by: tsenart
Best reviewed commit by commit. Part of https://github.com/sourcegraph/customer/issues/263
Created by: tsenart
Best reviewed commit by commit. Part of https://github.com/sourcegraph/customer/issues/263