1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-05 15:15:49 +02:00

remove redundant logging

This commit is contained in:
Jesse Duffield 2019-11-16 16:28:37 +11:00
parent 92e43d9e77
commit b5385f2560

View File

@ -13,7 +13,7 @@ func (c *GitCommand) GetBranchesFromDir(dirPath string) ([]*Branch, error) {
if err != nil {
// it's possible that go-git is referencing a remote we don't have locally
// in which case we'll just swallow this error
c.Log.Error(err)
c.Log.Warn(err)
return nil
}
@ -50,7 +50,6 @@ func (c *GitCommand) GetRemotes() ([]*Remote, error) {
remotes := make([]*Remote, len(goGitRemotes))
for i, goGitRemote := range goGitRemotes {
name := goGitRemote.Config().Name
c.Log.Warn(name)
// can't seem to easily get the branches of the remotes from go-git so we'll
// traverse the directory recursively