Clear repository on settings update

This commit is contained in:
Igor Kulikov 2022-05-19 13:21:19 +03:00
parent 587066cfd3
commit 4b01aa6f1e

View File

@ -305,6 +305,7 @@ public class DefaultEntitiesVersionControlService implements EntitiesVersionCont
throw new RuntimeException("Failed to load version control settings!", e); throw new RuntimeException("Failed to load version control settings!", e);
} }
try { try {
gitService.clearRepository(tenantId);
gitService.initRepository(tenantId, savedVersionControlSettings); gitService.initRepository(tenantId, savedVersionControlSettings);
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException("Failed to init repository!", e); throw new RuntimeException("Failed to init repository!", e);