Class GitStartupConfig
java.lang.Object
org.craftercms.studio.impl.v2.repository.GitStartupConfig
Updates git global configuration properties on startup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected boolean
setProperty
(org.eclipse.jgit.lib.StoredConfig config, String section, String property, String studioConfigProperty) Read a property from studio configuration and set its value in the git global configuration.
-
Constructor Details
-
GitStartupConfig
@ConstructorProperties("studioConfiguration") public GitStartupConfig(StudioConfiguration studioConfiguration)
-
-
Method Details
-
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 updatesection
- the section in the git configurationproperty
- the property to setstudioConfigProperty
- the property in the studio configuration to read the value from- Throws:
IOException
- if there is an error saving the git configuration
-