Skip to content

Commit 25d9b77

Browse files
committed
Remove ' from commit hash if needed
In TTY osx consoles an extra ' is sometimes present in front of the commit sha. this is not true other times (i.e. on CI) this should fix temporarely while we investigate more
1 parent 1453dc9 commit 25d9b77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/scm-data-generators/git.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ module.exports = CoreObject.extend({
1414
simpleGit(_this.path).log(function(err, log) {
1515
var info = log.latest;
1616
resolve({
17-
sha: info.hash.substring(1),
18-
email: info.author_email.substring(0, info.author_email.length - 1),
17+
sha: info.hash.replace("'",''),
18+
email: info.author_email.replace("'",''),
1919
name: info.author_name,
2020
timestamp: new Date(info.date).toISOString(),
2121
branch: gitRepoInfo().branch,

0 commit comments

Comments
 (0)