You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/AbstractScmEnvironmentRepository.java
Copy file name to clipboardExpand all lines: spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/CompositeEnvironmentRepository.java
Copy file name to clipboardExpand all lines: spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/EnvironmentController.java
+32-25Lines changed: 32 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -106,32 +106,36 @@ public void setAcceptEmpty(boolean acceptEmpty) {
Copy file name to clipboardExpand all lines: spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/EnvironmentEncryptorEnvironmentRepository.java
Copy file name to clipboardExpand all lines: spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/EnvironmentRepository.java
Copy file name to clipboardExpand all lines: spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/JGitEnvironmentProperties.java
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,12 @@ public class JGitEnvironmentProperties extends AbstractScmAccessorProperties
90
90
*/
91
91
privateintrefreshRate = 0;
92
92
93
+
/**
94
+
* Allow forceRefresh query parameter to force refresh the git repository regardless
95
+
* of refreshRate if true.
96
+
*/
97
+
privatebooleanallowForceRefresh = false;
98
+
93
99
/**
94
100
* Valid SSH private key. Must be set if ignoreLocalSshSettings is true and Git URI is
95
101
* SSH format.
@@ -189,6 +195,14 @@ public void setRefreshRate(int refreshRate) {
Copy file name to clipboardExpand all lines: spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/JGitEnvironmentRepository.java
+27-8Lines changed: 27 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,12 @@ public class JGitEnvironmentRepository extends AbstractScmEnvironmentRepository
96
96
*/
97
97
privateinttimeout;
98
98
99
+
/**
100
+
* Allow forceRefresh query parameter to force refresh the git repository regardless
101
+
* of refreshRate if true.
102
+
*/
103
+
publicbooleanallowForceRefresh = false;
104
+
99
105
/**
100
106
* Time (in seconds) between refresh of the git repository.
101
107
*/
@@ -158,6 +164,7 @@ public JGitEnvironmentRepository(ConfigurableEnvironment environment, JGitEnviro
0 commit comments