Skip to content

Commit 42131b5

Browse files
codebyteretargos
andcommitted
Properly trim getCommitSha result
Co-Authored-By: Michaël Zasso <[email protected]>
1 parent 73ef71e commit 42131b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/promote_release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class ReleasePromotion {
215215
}
216216

217217
getCommitSha(position = 0) {
218-
return runSync('git', ['rev-parse', `HEAD~${position}`]);
218+
return runSync('git', ['rev-parse', `HEAD~${position}`]).trim();
219219
}
220220

221221
get owner() {

0 commit comments

Comments
 (0)