mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Revert "Fix a error in a before(:suite)
hook"
This reverts commit 67d2a715ca
.
This commit is contained in:
parent
1ab410caf8
commit
9f7bfba54f
Notes:
git
2020-06-05 07:34:03 +09:00
1 changed files with 0 additions and 18 deletions
|
@ -235,24 +235,6 @@ module Spec
|
||||||
|
|
||||||
def git_ls_files(glob)
|
def git_ls_files(glob)
|
||||||
sys_exec("git ls-files -z -- #{glob}", :dir => source_root).split("\x0")
|
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
|
end
|
||||||
|
|
||||||
def tracked_files_glob
|
def tracked_files_glob
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue