cli/pkg/cmd/repo/sync
Mislav Marohnić 1260023547 repo sync: Use the new merge-upstream API if available
This helps avoid the errors when a new commit from upstream is not yet
available in the fork, resulting in a HTTP 404 when trying to update the
ref in the fork.

If the merge-upstream API is unavailable (404) or errors out (409/422),
the functionality falls back to the previous functionality of manually
updating refs. This ensures that `--force` still has effect.
2021-12-21 16:44:27 +01:00
..
git.go Allow user input for git fetch in repo sync 2021-09-13 10:14:20 -07:00
http.go repo sync: Use the new merge-upstream API if available 2021-12-21 16:44:27 +01:00
mocks.go Avoid git checkout during gh repo sync 2021-08-09 22:10:52 +02:00
sync.go repo sync: Use the new merge-upstream API if available 2021-12-21 16:44:27 +01:00
sync_test.go repo sync: Use the new merge-upstream API if available 2021-12-21 16:44:27 +01:00