Просмотр исходного кода

add changelog and format go code

Ixl123 7 лет назад
Родитель
Сommit
771055fd59
2 измененных файлов с 4 добавлено и 1 удалено
  1. 3 0
      CHANGELOG.md
  2. 1 1
      gitlab.go

+ 3 - 0
CHANGELOG.md

@@ -1,5 +1,8 @@
 CHANGELOG
 =========
+x.xx.x
+---
+- uses the `GITLAB_TOKEN` to clone GitLab repos.
 
 1.24.0
 ----

+ 1 - 1
gitlab.go

@@ -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,
 		}