Skip to content

Commit

Permalink
Merge pull request #244 from gregpabian/relative-root-fix
Browse files Browse the repository at this point in the history
Fixed parent path for relative paths
  • Loading branch information
davglass committed May 11, 2015
2 parents 7a7b808 + 801cd26 commit 94bca43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/tree-summarizer.js
Expand Up @@ -97,7 +97,7 @@ TreeSummary.prototype = {
seen[key] = node;
nodes.push(node);
parentPath = path.dirname(key) + SEP;
if (parentPath === SEP + SEP) {
if (parentPath === SEP + SEP || parentPath === '.' + SEP) {
parentPath = SEP + '__root__' + SEP;
}
parent = seen[parentPath];
Expand Down

0 comments on commit 94bca43

Please sign in to comment.