diff --git a/CHANGELOG.md b/CHANGELOG.md index fa9e115..dc9f72c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to **Dangl.GiteaOrgManager** are documented here. +## v1.0.2: +- Ignore failures when starting initial repo sync + ## v1.0.1: - Add retry logic for API calls diff --git a/src/Dangl.GiteaOrgManager/OrgCreationManager.cs b/src/Dangl.GiteaOrgManager/OrgCreationManager.cs index 73cca6f..d4a1411 100644 --- a/src/Dangl.GiteaOrgManager/OrgCreationManager.cs +++ b/src/Dangl.GiteaOrgManager/OrgCreationManager.cs @@ -178,9 +178,16 @@ private async Task ConfigurePushTargetsFromSourceToTargetRepositoriesAsync(Organ } } - // We want to initiate a push right away to ensure the new org - // has up to date code - await repositoryClient.RepoPushMirrorSyncAsync(sourceOrg.Name, sourceRepo.Name); + try + { + // We want to initiate a push right away to ensure the new org + // has up to date code + await repositoryClient.RepoPushMirrorSyncAsync(sourceOrg.Name, sourceRepo.Name); + } + catch + { + // But when it doesn't work, it'll be automatically started in a day + } } }