Skip to content

Commit

Permalink
Work around for dubious ownership git error
Browse files Browse the repository at this point in the history
    fatal: detected dubious ownership in repository at '/__w/dd-trace-rb/dd-trace-rb'
    To add an exception for this directory, call:

    	git config --global --add safe.directory /__w/dd-trace-rb/dd-trace-rb

This creeps up e.g when container user info doesn't match host info (e.g
via a host volume mount).
  • Loading branch information
lloeki committed Jun 28, 2024
1 parent 88f784c commit 2fe35be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/datadog/release_gem_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

expect(gemspec.files)
.to match_array(
`git ls-files -z`
`git -c safe.directory='*' ls-files -z`
.split("\x0")
.reject { |f| f.match(directories_excluded) }
.reject { |f| f.match(single_files_excluded) }
Expand Down

0 comments on commit 2fe35be

Please sign in to comment.