aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-24 20:40:33 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-24 22:00:44 +0200
commit0fa6f26b0e6ca242088794027c0a32d01e1bc6f9 (patch)
tree40b294855cd5b8fe28fe97786ce953c6704ca601 /config
parent9ae3c5808fcfa468d1f9394c9b16bc02f573ba79 (diff)
downloadgo-git-0fa6f26b0e6ca242088794027c0a32d01e1bc6f9.tar.gz
clients/ssh: test fix
Diffstat (limited to 'config')
-rw-r--r--config/config.go6
-rw-r--r--config/config_test.go5
2 files changed, 0 insertions, 11 deletions
diff --git a/config/config.go b/config/config.go
index 4cf5f7c..7138952 100644
--- a/config/config.go
+++ b/config/config.go
@@ -3,8 +3,6 @@ package config
import (
"errors"
"fmt"
-
- "gopkg.in/src-d/go-git.v3/clients/common"
)
const (
@@ -40,10 +38,6 @@ func (c *RemoteConfig) Validate() error {
return ErrRemoteConfigEmptyURL
}
- if _, err := common.NewEndpoint(c.URL); err != nil {
- return err
- }
-
if len(c.Fetch) == 0 {
c.Fetch = []RefSpec{RefSpec(fmt.Sprintf(DefaultRefSpec, c.Name))}
}
diff --git a/config/config_test.go b/config/config_test.go
index 853e518..d97053b 100644
--- a/config/config_test.go
+++ b/config/config_test.go
@@ -11,11 +11,6 @@ func (s *ConfigSuite) TestRemoteConfigValidateMissingURL(c *C) {
c.Assert(config.Validate(), Equals, ErrRemoteConfigEmptyURL)
}
-func (s *ConfigSuite) TestRemoteConfigValidateInvalidURL(c *C) {
- config := &RemoteConfig{Name: "foo", URL: "foo"}
- c.Assert(config.Validate(), NotNil)
-}
-
func (s *ConfigSuite) TestRemoteConfigValidateMissingName(c *C) {
config := &RemoteConfig{}
c.Assert(config.Validate(), Equals, ErrRemoteConfigEmptyName)