diff options
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/bundler/support/path.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb index 2e6486412f..4b80c5b4a4 100644 --- a/spec/bundler/support/path.rb +++ b/spec/bundler/support/path.rb @@ -357,7 +357,9 @@ module Spec end def ruby_core_tarball? - !git_root.join(".git").directory? + # A tarball checkout has no `.git` entry at all. Note that `.git` may be + # a file rather than a directory in linked git worktrees. + !git_root.join(".git").exist? end def rubocop_gemfile_basename |
