Skip to content

Commit

Permalink
Merge pull request #9139 from ember-cli/ember-cli-version
Browse files Browse the repository at this point in the history
make slashes into dashes for version string
  • Loading branch information
rwjblue committed Apr 3, 2020
2 parents 67be939 + 1251fce commit 172e2b4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/utilities/version-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ module.exports = {
let output = [require('../../package.json').version];

if (fs.existsSync(gitPath)) {
let repoInfo = getRepoInfo(gitPath);
let { branch, abbreviatedSha } = getRepoInfo(gitPath);

output.push(repoInfo.branch);
output.push(repoInfo.abbreviatedSha);
if (branch) {
output.push(branch.replace(/\//g, '-'));
}
output.push(abbreviatedSha);
}

return output.join('-');
Expand Down

0 comments on commit 172e2b4

Please sign in to comment.