diff --git a/app/models/communication/website/with_git_repository.rb b/app/models/communication/website/with_git_repository.rb index a9e13715665261a665cf82abebc24bd23daf6fe0..77b4ef09b37e24ca64e65bf4554b5fad618f13ac 100644 --- a/app/models/communication/website/with_git_repository.rb +++ b/app/models/communication/website/with_git_repository.rb @@ -85,6 +85,7 @@ module Communication::Website::WithGitRepository end def update_theme_version_safely + return unless should_sync_with_git? git_repository.update_theme_version! end