mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[ci-metrics] Use git rev-parse for branch (#114736)
--show-current was added in 2.22, which is still relatively new. Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
parent
c3b9e813c9
commit
690c25112c
2 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ export class CiStatsReporter {
|
|||
}
|
||||
|
||||
try {
|
||||
const { stdout } = await execa('git', ['branch', '--show-current']);
|
||||
const { stdout } = await execa('git', ['rev-parse', '--abbrev-ref', 'HEAD']);
|
||||
branch = stdout;
|
||||
} catch (e) {
|
||||
this.log.debug(e.message);
|
||||
|
|
2
packages/kbn-pm/dist/index.js
vendored
2
packages/kbn-pm/dist/index.js
vendored
|
@ -9075,7 +9075,7 @@ class CiStatsReporter {
|
|||
try {
|
||||
const {
|
||||
stdout
|
||||
} = await (0, _execa.default)('git', ['branch', '--show-current']);
|
||||
} = await (0, _execa.default)('git', ['rev-parse', '--abbrev-ref', 'HEAD']);
|
||||
branch = stdout;
|
||||
} catch (e) {
|
||||
this.log.debug(e.message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue