Skip to content

Commit

Permalink
chore(NA): ability to setup different name for origin remote on works…
Browse files Browse the repository at this point in the history
…pace status command
  • Loading branch information
mistic committed Feb 8, 2021
1 parent 543c63a commit 2302582
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/dev/bazel_workspace_status.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@
}

// Git repo
const repoUrlCmdResult = await runCmd('git', ['config', '--get', 'remote.origin.url']);
const kbnGitOriginName = process.env.KBN_GIT_ORIGIN_NAME || 'origin';
const repoUrlCmdResult = await runCmd('git', [
'config',
'--get',
`remote.${kbnGitOriginName}.url`,
]);
if (repoUrlCmdResult.exitCode !== 0) {
process.exit(1);
}
Expand Down

0 comments on commit 2302582

Please sign in to comment.