Skip to content

Commit 975cb56

Browse files
committed
use project root for git info
Trying to fix ember-cli-deploy#52
1 parent 7df8947 commit 975cb56

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ module.exports = {
2323
return context.distFiles;
2424
},
2525

26+
rootDir: function(context) {
27+
return context.project.root;
28+
},
29+
2630
scm: function(context) {
2731
return require('./lib/scm-data-generators')['git'];
2832
}
@@ -62,7 +66,7 @@ module.exports = {
6266
_getScmData: function() {
6367
var ScmDataGenerator = this.readConfig('scm');
6468
if (ScmDataGenerator) {
65-
var path = this.readConfig('distDir');
69+
var path = this.readConfig('rootDir');
6670
return new ScmDataGenerator(path).generate();
6771
} else {
6872
return Promise.resolve();

0 commit comments

Comments
 (0)