ember-cli-deploy / ember-cli-deploy/ember-cli-deploy-revision-data

type: 'git-commit' doesn't work from git submodule

オープン
#21 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
JavaScript
スター
22
フォーク
57
PR マージ指標
30日以内にマージされた PR はありません

説明

Related to https://github.com/rwjblue/git-repo-info/pull/11

From a git submodule I get the following error

``` sh
+- 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

``` js
var exec = require('child_process').execSync;

....

redis: {
revisionKey: function(){
return exec('git rev-parse --short --verify HEAD').toString().replace('\n','');
}
}
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。