summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAndre Ferraz <31141+deferraz@users.noreply.github.com>2023-06-08 14:48:08 -0300
committerGitHub <noreply@github.com>2023-06-08 13:48:08 -0400
commite372237aabfdb422e77b768b41114497c60f332d (patch)
treea792c66a51439d0e228297876c8eac59b1554c2b /ext
parent49825ec4df76b3d2571515525ac71b83efd30acc (diff)
chore: bump go version to 1.20 (#564)
* bump go version to 1.20 Signed-off-by: Andre Ferraz <andre.ferraz@loggi.com> * change golang version in actions to 1.20 Signed-off-by: Andre Ferraz <andre.ferraz@loggi.com> * bump golangci-lint-action and setup-go to v3 Signed-off-by: Andre Ferraz <andre.ferraz@loggi.com> * change actions/checkout to v3 Signed-off-by: Andre Ferraz <andre.ferraz@loggi.com> * bump golangci-lint-action to v1.52.2 Signed-off-by: Andre Ferraz <andre.ferraz@loggi.com> * these 3 linters were deprecated in favor of unused Signed-off-by: Andre Ferraz <andre.ferraz@loggi.com> * go linter fix Signed-off-by: Andre Ferraz <andre.ferraz@loggi.com> --------- Signed-off-by: Andre Ferraz <andre.ferraz@loggi.com> Co-authored-by: Andre Ferraz <andre.ferraz@loggi.com>
Diffstat (limited to 'ext')
-rw-r--r--ext/git/client.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/git/client.go b/ext/git/client.go
index fa470bc..11a9a75 100644
--- a/ext/git/client.go
+++ b/ext/git/client.go
@@ -155,12 +155,12 @@ func NewClientExt(rawRepoURL string, root string, creds Creds, insecure bool, en
// Returns a HTTP client object suitable for go-git to use using the following
// pattern:
-// - If insecure is true, always returns a client with certificate verification
-// turned off.
-// - If one or more custom certificates are stored for the repository, returns
-// a client with those certificates in the list of root CAs used to verify
-// the server's certificate.
-// - Otherwise (and on non-fatal errors), a default HTTP client is returned.
+// - If insecure is true, always returns a client with certificate verification
+// turned off.
+// - If one or more custom certificates are stored for the repository, returns
+// a client with those certificates in the list of root CAs used to verify
+// the server's certificate.
+// - Otherwise (and on non-fatal errors), a default HTTP client is returned.
func GetRepoHTTPClient(repoURL string, insecure bool, creds Creds, proxyURL string) *http.Client {
// Default HTTP client
var customHTTPClient = &http.Client{