소스 검색

Fixed bug where the repo name was removed on a user or org audit. (#344)

Alexander Curtiss 6 년 전
부모
커밋
01d73028f8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      hosts/github.go

+ 1 - 1
hosts/github.go

@@ -99,10 +99,10 @@ func (g *Github) Audit() {
 
 
 	for _, repo := range githubRepos {
 	for _, repo := range githubRepos {
 		r := audit.NewRepo(g.manager)
 		r := audit.NewRepo(g.manager)
-		r.Name = *repo.Name
 		err := r.Clone(&git.CloneOptions{
 		err := r.Clone(&git.CloneOptions{
 			URL: *repo.CloneURL,
 			URL: *repo.CloneURL,
 		})
 		})
+		r.Name = *repo.Name
 		if err != nil {
 		if err != nil {
 			log.Warn("unable to clone via https and access token, attempting with ssh now")
 			log.Warn("unable to clone via https and access token, attempting with ssh now")
 			auth, err := options.SSHAuth(g.manager.Opts)
 			auth, err := options.SSHAuth(g.manager.Opts)