do a fetch on each initialization

This commit is contained in:
brian 2021-01-13 11:54:30 -05:00
parent cdef7fe78f
commit a90138bff5

View File

@ -144,6 +144,7 @@ public class LocalRepositoryCache {
if (this.logger.isDebugEnabled()) if (this.logger.isDebugEnabled())
this.logger.debug("resetting Git"); this.logger.debug("resetting Git");
git.reset().setMode(ResetType.HARD).call(); git.reset().setMode(ResetType.HARD).call();
git.fetch().call();
if (branch != null && !branch.equals(git.getRepository().getBranch())) { if (branch != null && !branch.equals(git.getRepository().getBranch())) {
if (this.logger.isDebugEnabled()) if (this.logger.isDebugEnabled())