Skip to content

Commit

Permalink
clean up puts
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Aug 29, 2024
1 parent 228bae6 commit 068e28f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions lib/datadog/ci/git/local_repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,12 @@ def self.git_commit_users

# returns maximum of 1000 latest commits in the last month
def self.git_commits
p "COMMITS!!!!"
Telemetry.git_command(Ext::Telemetry::Command::GET_LOCAL_COMMITS)

output = nil
duration_ms = Core::Utils::Time.measure(:float_millisecond) do
output = exec_git_command("git log --format=%H -n 1000 --since=\"1 month ago\"")
end
p "OUTPUT"
p output

Telemetry.git_command_ms(Ext::Telemetry::Command::GET_LOCAL_COMMITS, duration_ms)

Expand Down
3 changes: 0 additions & 3 deletions spec/datadog/ci/git/packfiles_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@

describe ".generate" do
it "yields packfile" do
p Datadog::CI::Git::LocalRepository.git_commits
p included_commits

expect do |b|
described_class.generate(included_commits: included_commits, excluded_commits: excluded_commits, &b)
end.to yield_with_args(/\/.+\h{8}-\h{40}\.pack$/)
Expand Down

0 comments on commit 068e28f

Please sign in to comment.