Skip to content

Commit

Permalink
support hidden directories in repo server
Browse files Browse the repository at this point in the history
Signed-off-by: Bar <bar.ashkenazi@appsflyer.com>
  • Loading branch information
Bar committed Apr 29, 2024
1 parent d780b38 commit 6136f05
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion cmd/argocd-repo-server/commands/argocd_repo_server.go
Expand Up @@ -5,7 +5,6 @@ import (
"math"
"net"
"net/http"
"regexp"
"time"

"github.com/argoproj/pkg/stats"
Expand Down
2 changes: 0 additions & 2 deletions reposerver/repository/repository.go
Expand Up @@ -2605,7 +2605,6 @@ func (s *Service) GetGitFiles(_ context.Context, request *apiclient.GitFilesRequ
}

func (s *Service) GetGitDirectories(_ context.Context, request *apiclient.GitDirectoriesRequest) (*apiclient.GitDirectoriesResponse, error) {
log.Infof("Im new and env is %t", s.initConstants.IncludeHiddenDirectories)
repo := request.GetRepo()
revision := request.GetRevision()
noRevisionCache := request.GetNoRevisionCache()
Expand All @@ -2618,7 +2617,6 @@ func (s *Service) GetGitDirectories(_ context.Context, request *apiclient.GitDir
return nil, status.Errorf(codes.Internal, "unable to resolve git revision %s: %v", revision, err)
}

log.Infof("Im new and env is %t", s.initConstants.IncludeHiddenDirectories)
// check the cache and return the results if present
if cachedPaths, err := s.cache.GetGitDirectories(repo.Repo, revision); err == nil {
log.Debugf("cache hit for repo: %s revision: %s", repo.Repo, revision)
Expand Down

0 comments on commit 6136f05

Please sign in to comment.