File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
coverage.out
2
+ /.idea
3
+ go-git.iml
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import (
11
11
"gopkg.in/src-d/go-git.v4/clients/common"
12
12
"gopkg.in/src-d/go-git.v4/core"
13
13
"gopkg.in/src-d/go-git.v4/formats/packp/pktline"
14
+ "crypto/tls"
14
15
)
15
16
16
17
// GitUploadPackService git-upoad-pack service over HTTP
@@ -23,8 +24,13 @@ type GitUploadPackService struct {
23
24
// NewGitUploadPackService connects to a git-upload-pack service over HTTP, the
24
25
// auth is extracted from the URL, or can be provided using the SetAuth method
25
26
func NewGitUploadPackService (endpoint common.Endpoint ) common.GitUploadPackService {
27
+
28
+ c := http.Client {Transport : & http.Transport {
29
+ TLSClientConfig : & tls.Config {InsecureSkipVerify : true },
30
+ }}
31
+
26
32
s := & GitUploadPackService {
27
- client : http . DefaultClient ,
33
+ client : c ,
28
34
endpoint : endpoint ,
29
35
}
30
36
You can’t perform that action at this time.
0 commit comments