Bumping versions
This commit is contained in:
@@ -470,7 +470,8 @@ public class JGitEnvironmentRepository extends AbstractScmEnvironmentRepository
|
||||
protected boolean shouldPull(Git git) throws GitAPIException {
|
||||
boolean shouldPull;
|
||||
|
||||
if (this.refreshRate < 0 || (this.refreshRate > 0 && System.currentTimeMillis() - this.lastRefresh < (this.refreshRate * 1000))) {
|
||||
if (this.refreshRate < 0 || (this.refreshRate > 0
|
||||
&& System.currentTimeMillis() - this.lastRefresh < (this.refreshRate * 1000))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -542,7 +542,7 @@ public class JGitEnvironmentRepositoryTests {
|
||||
properties.setRefreshRate(-1);
|
||||
|
||||
JGitEnvironmentRepository repo = new JGitEnvironmentRepository(this.environment, properties,
|
||||
ObservationRegistry.NOOP);
|
||||
ObservationRegistry.NOOP);
|
||||
|
||||
boolean shouldPull = repo.shouldPull(git);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user