ember-cli-deploy / ember-cli-deploy/ember-cli-deploy-revision-data
type: 'git-commit' doesn't work from git submodule
- 主要语言
- 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','');
}
}
```
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先阅读 node_modules/ember-cli-deploy-revision-data/lib/data-generators/git-commit.js 第 14 行附近的内容,并将其对 git 元数据的处理与已报告的 git rev-parse --short --verify HEAD workaround 进行比较。当从 git 子模块中运行时,git-commit revision-data 生成器能够在没有 TypeError 的情况下工作,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- git, javascript
- 领域
- build-system
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100