diff --git a/tui/git.go b/tui/git.go index 631ef7ede5d9172ffee779b52411609064b609ef..59b7c6dfebbb77982cc454978987540e71323c74 100644 --- a/tui/git.go +++ b/tui/git.go @@ -58,6 +58,7 @@ func (rs *repoSource) loadRepos() { return } rs.repos = make([]*git.Repository, 0) + rs.commits = make([]*object.Commit, 0) for _, rd := range rd { r, err := git.PlainOpen(rs.path + string(os.PathSeparator) + rd.Name()) if err != nil {