Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get rid of newline from sha #1599

Merged

Conversation

erwinmombay
Copy link
Member

No description provided.

@@ -112,7 +112,9 @@ function submitReleaseNotes(version, changelog, sha) {
}

function getCurrentSha() {
return gitExec({ args: 'rev-parse HEAD' });
return gitExec({ args: 'rev-parse HEAD' }).then(function(sha) {
return sha.replace(/\n/, '');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

String#trim will trim whitespace for you.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@jridgewell
Copy link
Contributor

LGTM

erwinmombay added a commit that referenced this pull request Jan 26, 2016
@erwinmombay erwinmombay merged commit 7504ae7 into ampproject:master Jan 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants