add changelog and format go code

This commit is contained in:
Ixl123 committed 2019-03-08 14:38:47 +01:00
1 parent 75c70bf804
commit 771055fd59
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -1,5 +1,8 @@
CHANGELOG
=========
x.xx.x
---
- uses the `GITLAB_TOKEN` to clone GitLab repos.
1.24.0
----
+1 -1
View File
@@ -148,7 +148,7 @@ func cloneGitlabRepo(tempDir string, p *gitlab.Project) (*RepoDescriptor, error)
opt.URL = p.SSHURLToRepo
opt.Auth = sshAuth
} else if gitLabToken != "" {
opt.Auth = &gitHttp.BasicAuth {
opt.Auth = &gitHttp.BasicAuth{
Username: "fakeUsername", // yes, this can be anything except an empty string
Password: gitLabToken,
}