remove workaround for github, seems not needed
authorPavel Sher <pavel.sher@gmail.com>
Thu, 16 Jan 2014 15:38:28 +0000 (16:38 +0100)
committerPavel Sher <pavel.sher@gmail.com>
Thu, 16 Jan 2014 15:38:28 +0000 (16:38 +0100)
git-server/src/jetbrains/buildServer/buildTriggers/vcs/git/GitUrlSupport.java
git-tests/src/jetbrains/buildServer/buildTriggers/vcs/git/tests/GitUrlSupportTest.java

index 852380ea6a9e8484d68e6fd6a65dbe07edb17b66..bad476299cb04da73505fabe8939783808851366 100644 (file)
@@ -60,10 +60,6 @@ public class GitUrlSupport implements UrlSupport {
       return props;
 
     try {
-      if (fetchUrl.contains("github") && !fetchUrl.endsWith(".git")) {
-        props.put(Constants.FETCH_URL, fetchUrl + ".git");
-      }
-
       myGitSupport.testConnection(new VcsRootImpl(-1, Constants.VCS_NAME, props));
       return props;
     } catch (VcsException e) {
index 8a197210080cd6880999e3d227585354fa714305..de7739a05c6fd27d157da86743d11cc940c30ff9 100644 (file)
@@ -156,14 +156,6 @@ public class GitUrlSupportTest extends BaseTestCase {
     assertEquals("pwd1", root.getProperty(Constants.PASSWORD));
   }
 
-  @Test
-  public void url_without_git_suffix() throws Exception {
-    VcsUrl url = new VcsUrl("https://github.com/hhariri/wasabi");
-    GitVcsRoot root = toGitRoot(url);
-
-    assertEquals("https://github.com/hhariri/wasabi.git", root.getProperty(Constants.FETCH_URL));
-  }
-
   @Test
   public void http_protocol_svn_repo() throws Exception {
     VcsUrl url = new VcsUrl("http://svn.jetbrains.org/teamcity/plugins/xml-tests-reporting/trunk/");