提交 1a7c3ee1 编写于 作者: J Joao Moreno

git version might not be semver

fixes #4214
上级 85fae8e0
......@@ -431,6 +431,8 @@ export class GitService extends ee.EventEmitter
this.triggerStatus(true); // trigger initial status
this.raw.getVersion().done(version => {
version = version || '';
version = version.replace(/^(\d+\.\d+\.\d+).*$/, '$1');
version = semver.valid(version);
if (version && semver.satisfies(version, '<2.0.0')) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册