Skip to content

Commit

Permalink
add logging insight into git fetch in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
camallen committed Jul 21, 2023
1 parent 35123a7 commit d7b1844
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/knapsack_pro/repository_adapters/git_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ def build_author
private

def git_commit_authors
if KnapsackPro::Config::Env.ci?
if KnapsackPro::Config::Env.ci? && !ENV.fetch("SKIP_KP_GIT_FETCH", false)
KnapsackPro.logger.debug("running CI git fetch in git_commit_authors lookup")
`git fetch --shallow-since "one month ago" --quiet 2>/dev/null`
# `git fetch --shallow-since "one month ago" --quiet 2>/dev/null`
`git fetch --shallow-since "one month ago"`
end

KnapsackPro.logger.debug("getting the authors from the git log")
Expand Down

0 comments on commit d7b1844

Please sign in to comment.