Skip to content

Commit

Permalink
do not run git config in tests locally so that I don't become Bits again
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Apr 23, 2024
1 parent c63e3cb commit 5e89348
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/datadog/ci/git/local_repository_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,10 @@ def with_clone_git_dir
# create a new git repository
`mkdir -p #{source_path}`
`cd #{source_path} && git init && git remote add origin #{origin_path}`
`cd #{source_path} && git config user.email "[email protected]"`
`cd #{source_path} && git config user.name "Bits"`
if ENV["CI"] == "true"
`cd #{source_path} && git config user.email "[email protected]"`
`cd #{source_path} && git config user.name "Bits"`
end
`cd #{source_path} && echo "Hello, world!" >> README.md && git add README.md && git commit -m "Initial commit"`

commits_count.times do
Expand Down

0 comments on commit 5e89348

Please sign in to comment.