ソースを参照

Fix logging of repo paths

Luis Pollo 7 年 前
コミット
7a3d155675
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/repo.go

+ 2 - 2
src/repo.go

@@ -83,10 +83,10 @@ func (repoInfo *RepoInfo) clone() error {
 			})
 			})
 		}
 		}
 	} else if repoInfo.path != "" {
 	} else if repoInfo.path != "" {
-		log.Infof("opening %s", opts.RepoPath)
+		log.Infof("opening %s", repoInfo.path)
 		repo, err = git.PlainOpen(repoInfo.path)
 		repo, err = git.PlainOpen(repoInfo.path)
 		if err != nil {
 		if err != nil {
-			log.Errorf("unable to open %s", opts.RepoPath)
+			log.Errorf("unable to open %s", repoInfo.path)
 		}
 		}
 	} else {
 	} else {
 		// cloning to memory
 		// cloning to memory