Reset error about non-found git executable when no repositories are found
authorDmitry Neverov <dmitry.neverov@gmail.com>
Thu, 24 Aug 2017 10:01:56 +0000 (12:01 +0200)
committerDmitry Neverov <dmitry.neverov@gmail.com>
Thu, 24 Aug 2017 10:01:56 +0000 (12:01 +0200)
git-server/src/jetbrains/buildServer/buildTriggers/vcs/git/Cleanup.java

index 19d27db0c64abf5aa7034b3d3ad7df955d892072..c2bfc1f55d480ebd5d8c47a25d67a6d4ebe0d0d4 100644 (file)
@@ -147,6 +147,8 @@ public class Cleanup {
     myGcErrors.retainErrors(allDirs);
     if (allDirs.isEmpty()) {
       LOG.debug("No repositories found");
+      //reset error, no reason to show it if there is no repositories
+      myNativeGitError.set(null);
       return;
     }
     if (!isNativeGitInstalled()) {