1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Merge pull request #193 from baustinanki/git-repo-newline

Fix newline in git module repo names breaking display
This commit is contained in:
Chris Cummer 2018-06-08 15:22:47 -07:00 committed by GitHub
commit 59cd1d23bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ func NewGitRepo(repoPath string) *GitRepo {
repo.Branch = repo.branch()
repo.ChangedFiles = repo.changedFiles()
repo.Commits = repo.commits()
repo.Repository = repo.repository()
repo.Repository = strings.TrimSpace(repo.repository())
return &repo
}