TEAMCITY-GIT-CR-7 TW-56415 Fix after review
authorVladislav Rassokhin <vladislav.rassokhin@jetbrains.com>
Sun, 19 Aug 2018 13:53:06 +0000 (16:53 +0300)
committerVladislav Rassokhin <vladislav.rassokhin@jetbrains.com>
Sun, 19 Aug 2018 13:53:06 +0000 (16:53 +0300)
git-agent/src/jetbrains/buildServer/buildTriggers/vcs/git/agent/UpdaterWithMirror.java

index f24f8821b799829c46f3c8619d76adae8f35ebdc..589b306e1840c6a92b6501a4e7627cf75f6099cb 100644 (file)
@@ -163,6 +163,7 @@ public class UpdaterWithMirror extends UpdaterImpl {
         } catch (GitExecTimeout e) {
           throw e;
         } catch (VcsException e) {
+          if (!repeatFetchAttempt) throw e;
           // Throw exception after latest attempt
           if (i == retryTimeouts.length) throw e;
           int wait = retryTimeouts[i];