use test connection in Git url support instead of getCurrentVersion
authorPavel Sher <pavel.sher@gmail.com>
Wed, 11 Dec 2013 11:12:13 +0000 (12:12 +0100)
committerPavel Sher <pavel.sher@gmail.com>
Wed, 11 Dec 2013 11:12:13 +0000 (12:12 +0100)
git-server/src/jetbrains/buildServer/buildTriggers/vcs/git/GitUrlSupport.java

index 6942c94c05d215ee3336f774d22b64b00c2accb3..4c69b299e9bb4f23c5c4129d8168936e93e90867 100644 (file)
@@ -61,7 +61,7 @@ public class GitUrlSupport implements UrlSupport {
       return props;
 
     try {
-      myGitSupport.getCurrentVersion(new VcsRootImpl(-1, Constants.VCS_NAME, props));
+      myGitSupport.testConnection(new VcsRootImpl(-1, Constants.VCS_NAME, props));
     } catch (VcsException e) {
       if (e.getCause() instanceof NoRemoteRepositoryException) {
         return null; // definitely not git