Sanitize logs for mirror sync (#3057)

This commit is contained in:
Ethan Koenig 2017-12-02 21:29:41 -08:00 committed by Lunny Xiao
parent 3163abedd6
commit a0964775ab
2 changed files with 46 additions and 8 deletions

View file

@ -605,9 +605,14 @@ func (repo *Repository) RepoPath() string {
return repo.repoPath(x)
}
// GitConfigPath returns the path to a repository's git config/ directory
func GitConfigPath(repoPath string) string {
return filepath.Join(repoPath, "config")
}
// GitConfigPath returns the repository git config path
func (repo *Repository) GitConfigPath() string {
return filepath.Join(repo.RepoPath(), "config")
return GitConfigPath(repo.RepoPath())
}
// RelLink returns the repository relative link