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

fix(buildtool): Push changelog command should pull origin (#49) #50

Conversation

spinnakerbot
Copy link
Collaborator

I was trying to figure out why any manual changes I made to the raw
changelog (notably deleting the no-longer-needed 1.14, 1.15, 1.16
entries) were disappearing. It turns out that while we fetch the
origin commit, we don't do anything with it, and commit on top of
what's currently on the jenkins machine, then force push that to
the origin.

Instead, just reset master to origin/master before making any
changes. There should not be any local changes in this directory;
if there are, it would be from an error in some prior run, and we'd
rather just start fresh (as we do in the first block where we just
clone).

Also remove the force push; if the origin has changed since we
fetched a few lines above, let's fail rather than overwrite what's
there.

Automated cherry pick of 0bd0cfb into 1.19

I was trying to figure out why any manual changes I made to the raw
changelog (notably deleting the no-longer-needed 1.14, 1.15, 1.16
entries) were disappearing.  It turns out that while we fetch the
origin commit, we don't do anything with it, and commit on top of
what's currently on the jenkins machine, then force push that to
the origin.

Instead, just reset master to origin/master before making any
changes. There should not be any local changes in this directory;
if there are, it would be from an error in some prior run, and we'd
rather just start fresh (as we do in the first block where we just
clone).

Also remove the force push; if the origin *has* changed since we
fetched a few lines above, let's fail rather than overwrite what's
there.
@ezimanyi ezimanyi merged commit 1d8cc52 into release-1.19.x Mar 19, 2020
@ezimanyi ezimanyi deleted the auto-cherry-pick-1.19-0bd0cfb7e3bcae6d170ae77f506bdd9fe45af65c branch March 19, 2020 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants