diff --git a/pkg/cmd/sessions/selectsession/selectsession.go b/pkg/cmd/sessions/selectsession/selectsession.go index 4831f6845..90d43b9d5 100644 --- a/pkg/cmd/sessions/selectsession/selectsession.go +++ b/pkg/cmd/sessions/selectsession/selectsession.go @@ -74,7 +74,10 @@ func SelectSession(io *iostreams.IOStreams, cfg *config.Config, log *logger.Logg log.Printf("Ignoring dir: %+v", info.Name()) return filepath.SkipDir } - + if info.IsDir() && info.Name() == ".git" { + log.Printf("Ignoring dir: %+v", info.Name()) + return filepath.SkipDir + } if info.IsDir() { return nil }