Skip to content

Commit

Permalink
use project root for git info
Browse files Browse the repository at this point in the history
Trying to fix
ember-cli-deploy#52
  • Loading branch information
mcfiredrill authored and ssendev committed May 29, 2017
1 parent 457f19a commit 6b59520
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ module.exports = {
return context.distFiles;
},

rootDir: function(context) {
return context.project.root;
},

scm: function(/* context */) {
return require('./lib/scm-data-generators')['git'];
}
Expand Down Expand Up @@ -62,7 +66,7 @@ module.exports = {
_getScmData: function() {
var ScmDataGenerator = this.readConfig('scm');
if (ScmDataGenerator) {
var path = this.readConfig('distDir');
var path = this.readConfig('rootDir');
return new ScmDataGenerator(path).generate();
} else {
return RSVP.resolve();
Expand Down

0 comments on commit 6b59520

Please sign in to comment.