buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Sinschek (JIRA)" <>
Subject [jira] Created: (BUILDR-380) Recursive search for root '/' does not work in windows
Date Thu, 25 Feb 2010 15:31:27 GMT
Recursive search for root '/' does not work in windows

                 Key: BUILDR-380
             Project: Buildr
          Issue Type: Bug
    Affects Versions: 1.3.5
         Environment: Windows, using jruby
            Reporter: Jan Sinschek
            Priority: Minor

In core\build.rb, line 375, 
          File.expand_path(Dir.pwd) != '/' && Dir.chdir('..') do
                 [recursive call]

is used when looking for a git config file. This method does not work on windows, where the
path description never gets that short.
          File.expand_path(Dir.pwd) != '/' && File.expand_path(Dir.pwd) != 'C:/' 
&& Dir.chdir('..') do
worked for me, this is not an adequate solution. I assume that the ruby standard library offers
an "is system root" method which would be adequate.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message