Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix infinite loop when no jakefile is present.

Reviewed by me.
  • Loading branch information...
commit 74abd187571c7b9326940154b99e12d245c0ccb2 1 parent 9272316
@tolmasky tolmasky authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.