Skip to content
Browse files

Fix infinite loop when no jakefile is present.

Reviewed by me.
  • Loading branch information...
1 parent 9272316 commit 74abd187571c7b9326940154b99e12d245c0ccb2 @tolmasky tolmasky committed Nov 1, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/jake/application.js
View
4 lib/jake/application.js
@@ -483,8 +483,8 @@ Application.prototype.findJakefileLocation = function()
var directory = FILE.cwd(),
filename = null;
- while (!(filename = this.hasJakefile(directory)))// && !this._options.nosearch)
- directory = FILE.join(directory, "..");
+ while (!(filename = this.hasJakefile(directory)) && directory !== "/")// && !this._options.nosearch)
+ directory = FILE.absolute(FILE.join(directory, ".."));
if (!filename)
return null;

0 comments on commit 74abd18

Please sign in to comment.
Something went wrong with that request. Please try again.