ember-cli-deploy-revision-data
ember-cli-deploy-revision-data copied to clipboard
type: 'git-commit' doesn't work from git submodule
Related to https://github.com/rwjblue/git-repo-info/pull/11
From a git submodule I get the following error
+- prepare
| |
| +- revision-data
| - creating revision data using `git-commit`
|
+- didFail
TypeError: Cannot read property 'slice' of null
TypeError: Cannot read property 'slice' of null
at CoreObject.module.exports.CoreObject.extend.generate (/home/ewan/projects/questionr/main/node_modules/ember-cli-deploy-revision-data/lib/data-generators/git-commit.js:14:23)
As a workaround in deploy.js I'm using
var exec = require('child_process').execSync;
....
redis: {
revisionKey: function(){
return exec('git rev-parse --short --verify HEAD').toString().replace('\n','');
}
}
@achambers I believe the PR above should resolve this.