Issue #8283 has been updated by gpakosz (Gregory Pakosz).


well actually behavior changed between ruby 1.9.3-p392 and ruby 2.0.0-p0

I have a script that does:

local_repositories = []
Dir['_all/**/.git/config'].each do |f|
  config = IniFile.load(f)
  url = config['remote "origin"']['url']
  local_repositories << (url.end_with?('.git') ? url : "#{url}.git")
end


and that broke when upgrading to ruby 2.0.0-p0
with ruby 2.0.0-p0, Dir.glob doesn't enter .git directories at all
I had to change the expression to Dir['_all/*/.git/config']

so there is indeed a behavior change between ruby 1.9.3-p392 and ruby 2.0.0-p0, other people confirmed on their boxes on #ruby freenode

can you please reconsider the rejection?
thank you
----------------------------------------
Bug #8283: Dir.glob doesn't recurse hidden directories
https://bugs.ruby-lang.org/issues/8283#change-38663

Author: gpakosz (Gregory Pakosz)
Status: Rejected
Priority: Normal
Assignee: 
Category: core
Target version: 
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin11.4.2]


Hello,

I noticed Dir.glob('**') doesn't recurse hidden directories.

I believe regression has been introduced by r36903.

Here is the following directory / file structure:
$ find .
.
./foo
./foo/.bar
./foo/.bar/baz.txt
./foo/bar

And here is the behavior of ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin11.4.2]:
$ ruby -e "puts Dir.glob('**/*')"
foo
foo/bar


-- 
http://bugs.ruby-lang.org/