Skip to content

Commit

Permalink
Add worktree to girror metadata returned by find_meta
Browse files Browse the repository at this point in the history
  • Loading branch information
eladb committed Apr 24, 2012
1 parent a1a8e1b commit 7b09f54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/find_meta.js
Expand Up @@ -40,7 +40,11 @@ module.exports = function find(dir, options, callback) {
var f = path.join(dir, girrorfile);
return path.exists(f, function(exists) {
if (exists) {
return _parseFile(f, callback);
return _parseFile(f, function(err, meta) {
if (err) return callback(err);
meta.worktree = dir;
return callback(null, meta);
});
}
else {
// if we have reached the root and still didn't find a file, return with `null`.
Expand Down

0 comments on commit 7b09f54

Please sign in to comment.