diff options
author | isaacs <i@izs.me> | 2011-06-03 20:34:18 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-06-03 20:34:18 +0400 |
commit | 28fbdd5e0198361e87a387aa39e7c9d71767a9e8 (patch) | |
tree | 23e4b7f91b4cd9e21ac4c8f4338946e2fef4f5e6 | |
parent | 73ee8c02ebacff08dff79c496d644127d8ada3b5 (diff) |
Regression from 1.0.9 env.HOME fix.
-rw-r--r-- | lib/utils/excludes.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils/excludes.js b/lib/utils/excludes.js index 22e493a51..811acec42 100644 --- a/lib/utils/excludes.js +++ b/lib/utils/excludes.js @@ -34,6 +34,7 @@ var path = require("path") // read an ignore file, or fall back to the // "gitBase" file in the same directory. function readIgnoreFile (file, gitBase, cb) { + if (!file) return cb(null, "") fs.readFile(file, function (er, data) { if (!er) return cb(null, data || "") var gitFile = path.resolve(path.dirname(file), gitBase) |