diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-04 20:31:18 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-05 07:32:42 +0900 |
commit | 9f7bfba54ffee1bdc30aa7a08a1be1847c89a60a (patch) | |
tree | 44c00cc9696685854f131d740ddd409aa7db5b5d /spec | |
parent | 1ab410caf8612589b37309b8cb1fa2f50bb1e097 (diff) | |
download | ruby-9f7bfba54ffee1bdc30aa7a08a1be1847c89a60a.tar.gz |
Revert "Fix a error in a `before(:suite)` hook"
This reverts commit 67d2a715ca35090fbb3ab13df5b7348b1807dd47.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/support/path.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb index 4cf604a267..a810f0735f 100644 --- a/spec/bundler/support/path.rb +++ b/spec/bundler/support/path.rb @@ -235,24 +235,6 @@ module Spec def git_ls_files(glob) sys_exec("git ls-files -z -- #{glob}", :dir => source_root).split("\x0") - ensure - if err == "fatal: not a git repository (or any of the parent directories): .git" - @command_executions.pop # Remove failed "git ls-files" - Dir.chdir(source_root) do - files = [] - Dir.glob(glob.shellsplit) do |path| - if File.directory?(path) - Dir.glob("#{path}/**/{*,.*}") do |sub_path| - next if File.directory?(sub_path) - files << sub_path - end - else - files << path - end - end - return files.uniq - end - end end def tracked_files_glob |