We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a89e1cb + 4294b3a commit 8d2669dCopy full SHA for 8d2669d
1 file changed
spec/support/path.rb
@@ -357,7 +357,9 @@ def man_tracked_files_glob
357
end
358
359
def ruby_core_tarball?
360
- !git_root.join(".git").directory?
+ # A tarball checkout has no `.git` entry at all. Note that `.git` may be
361
+ # a file rather than a directory in linked git worktrees.
362
+ !git_root.join(".git").exist?
363
364
365
def rubocop_gemfile_basename
0 commit comments