-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Labels
Description
Related to rwjblue/git-repo-info#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','');
}
}