<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -319,8 +319,8 @@ class Thor::Runner &lt; Thor
     # you can execute &quot;thor -T&quot; and see any tasks you might have in the root 
     # directory of your Rails project.
     Pathname.pwd.ascend do |path|
-      thorfile = Thor::Runner.globs_for(path).map { |g| Dir[g] }.flatten
-      next if thorfiles.empty?
+      thorfiles = Thor::Runner.globs_for(path).map { |g| Dir[g] }.flatten
+      break unless thorfiles.empty?
     end
 
     # We want to load system-wide Thorfiles first so the local Thorfiles will </diff>
      <filename>lib/thor/runner.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>867e912ad9da417e273615e69b1c97b66e210748</id>
    </parent>
  </parents>
  <author>
    <name>Brian Donovan</name>
    <email>brian.donovan@gmail.com</email>
  </author>
  <url>http://github.com/wycats/thor/commit/52b4759a8e21c95a3f432efc8460c86be198ac7a</url>
  <id>52b4759a8e21c95a3f432efc8460c86be198ac7a</id>
  <committed-date>2009-02-24T10:41:07-08:00</committed-date>
  <authored-date>2009-02-24T10:39:07-08:00</authored-date>
  <message>Fix fallout from 94495f38.
This was causing thor to always say &quot;No Thor tasks available&quot; when invoking `thor -T' or &quot;There was no available namespace `'.&quot; when running `thor :install'.</message>
  <tree>2b5e5e8ac47b43d90fbc6ace4e07bd5031862a2c</tree>
  <committer>
    <name>Brian Donovan</name>
    <email>brian.donovan@gmail.com</email>
  </committer>
</commit>
