Skip to content
Browse files

[fix] path.existsSync was moved to fs.existsSync

  • Loading branch information...
1 parent 50b77be commit 786ccdb4b01e28e3c78032e8cb635d94362bb55d @blakmatrix blakmatrix committed Jul 7, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 bin/cmd.js
  2. +1 −1 lib/git_dir.js
View
4 bin/cmd.js
@@ -37,8 +37,8 @@ withConfig(function (config) {
}
else {
var dir = gitDir(process.cwd());
- if (!path.existsSync(dir + '/.travis.yml')
- && path.existsSync(dir + '/package.json')) {
+ if (!fs.existsSync(dir + '/.travis.yml')
+ && fs.existsSync(dir + '/package.json')) {
var pkg = JSON.parse(fs.readFileSync(dir + '/package.json'));
var sv = (pkg.engines || {}).node || '>=0.4';
View
2 lib/git_dir.js
@@ -4,6 +4,6 @@ module.exports = function (dir) {
var ps = dir.split('/');
for (var i = ps.length; i > 0; i--) {
var p = ps.slice(0, i).join('/');
- if (path.existsSync(p + '/.git')) return p;
+ if (fs.existsSync(p + '/.git')) return p;
}
};

0 comments on commit 786ccdb

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