Closed duizendnegen closed 3 years ago
I'm experiencing this same issue even using the version pointed at master with the referenced pull request merged in.
var info = log.latest;
^
TypeError: Cannot read property 'latest' of null
Thanks @jhliberty - proposed https://github.com/ember-cli-deploy/ember-cli-deploy-revision-data/pull/61, can you check with that fix?
I tried out the commit and it worked successfully. Thanks for the quick resolution!
I looked around the source and saw this in index.js:
_getScmData: function() {
var ScmDataGenerator = this.readConfig('scm');
if (ScmDataGenerator) {
var path = this.readConfig('distDir');
return new ScmDataGenerator(path).generate();
} else {
return RSVP.resolve();
}
},
So setting scm: false
in your deploy config for this addon would also prevent that function from even firing.
Thought that was useful as well, though using file-hash shouldn't fail on non-git systems so 👍 but someone may find this config useful.
scm
is unavailable, leading tothrowing an error. Shall we just resolve with an empty response instead in case of
!log
?