Class GitStartupConfig

java.lang.Object
org.craftercms.studio.impl.v2.repository.GitStartupConfig

public class GitStartupConfig extends Object
Updates git global configuration properties on startup
  • Constructor Details

  • Method Details

    • onStartup

      @Order(-2147483648) @EventListener(CleanupRepositoriesEvent.class) public void onStartup()
    • setProperty

      protected boolean setProperty(org.eclipse.jgit.lib.StoredConfig config, String section, String property, String studioConfigProperty) throws IOException
      Read a property from studio configuration and set its value in the git global configuration.
      Parameters:
      config - the git configuration to update
      section - the section in the git configuration
      property - the property to set
      studioConfigProperty - the property in the studio configuration to read the value from
      Throws:
      IOException - if there is an error saving the git configuration