-
Notifications
You must be signed in to change notification settings - Fork 71
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 bug when pushing into different branch #330
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pjbgf
force-pushed
the
fix-bug-push-branch
branch
from
March 23, 2022 17:11
bc40b8e
to
b96b005
Compare
hiddeco
reviewed
Mar 23, 2022
pjbgf
force-pushed
the
fix-bug-push-branch
branch
from
March 23, 2022 18:14
b96b005
to
e580f8d
Compare
hiddeco
approved these changes
Mar 23, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @pjbgf 🙇
hiddeco
force-pushed
the
fix-bug-push-branch
branch
from
March 23, 2022 19:07
e580f8d
to
c702474
Compare
pjbgf
force-pushed
the
fix-bug-push-branch
branch
from
March 23, 2022 19:09
c702474
to
0ce26ba
Compare
Changes replacing go-git with git2go introduced a bug in which pushes into new branches squashes all commits into one. xref: fluxcd#324 Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
pjbgf
force-pushed
the
fix-bug-push-branch
branch
from
March 23, 2022 19:32
0ce26ba
to
4b35fe3
Compare
pjbgf
changed the title
Fix bug when pushing into different branches
Fix bug when pushing into different branch
Mar 23, 2022
pjbgf
pushed a commit
to pjbgf/image-automation-controller
that referenced
this pull request
May 27, 2022
Fixes regression in which IAC will fail to update push branch when the push branch already exists and checkout branch is ahead. The reconciliation errors with: 'cannot push because a reference that you are trying to update on the remote contains commits that are not present locally.' Regression introduced on fluxcd#330. Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
stefanprodan
pushed a commit
to pjbgf/image-automation-controller
that referenced
this pull request
Jun 1, 2022
Fixes regression in which IAC will fail to update push branch when the push branch already exists and checkout branch is ahead. The reconciliation errors with: 'cannot push because a reference that you are trying to update on the remote contains commits that are not present locally.' Regression introduced on fluxcd#330. Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
stefanprodan
pushed a commit
to pjbgf/image-automation-controller
that referenced
this pull request
Jun 1, 2022
Fixes regression in which IAC will fail to update push branch when the push branch already exists and checkout branch is ahead. The reconciliation errors with: 'cannot push because a reference that you are trying to update on the remote contains commits that are not present locally.' Regression introduced on fluxcd#330. Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
stefanprodan
pushed a commit
to pjbgf/image-automation-controller
that referenced
this pull request
Jun 1, 2022
Fixes regression in which IAC will fail to update push branch when the push branch already exists and checkout branch is ahead. The reconciliation errors with: 'cannot push because a reference that you are trying to update on the remote contains commits that are not present locally.' Regression introduced on fluxcd#330. Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
aryan9600
pushed a commit
to aryan9600/image-automation-controller
that referenced
this pull request
Jun 2, 2022
Fixes regression in which we fail to push to a branch after switching to a branch, if origin is ahead of local. Fixed by setting the upstream commit as the local branch target. Regression introduced in fluxcd#330, and partially addressed in fluxcd#369. Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
aryan9600
pushed a commit
to aryan9600/image-automation-controller
that referenced
this pull request
Jun 2, 2022
Fixes regression in which we fail to push to a branch after switching to a branch, if origin is ahead of local. Fixed by setting the upstream commit as the local branch target. Regression introduced in fluxcd#330, and partially addressed in fluxcd#369. Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
aryan9600
pushed a commit
to aryan9600/image-automation-controller
that referenced
this pull request
Jun 2, 2022
Fixes regression in which we fail to push to a branch after switching to a branch, if origin is ahead of local. Fixed by setting the upstream commit as the local branch target. Regression introduced in fluxcd#330, and partially addressed in fluxcd#369. Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
aryan9600
pushed a commit
to aryan9600/image-automation-controller
that referenced
this pull request
Jun 2, 2022
Fixes regression in which we fail to push to a branch after switching to a branch, if origin is ahead of local. Fixed by setting the upstream commit as the local branch target. Regression introduced in fluxcd#330, and partially addressed in fluxcd#369. Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
aryan9600
pushed a commit
to aryan9600/image-automation-controller
that referenced
this pull request
Jun 2, 2022
Fixes regression in which we fail to push to a branch after switching to a branch, if origin is ahead of local. Fixed by setting the upstream commit as the local branch target. Regression introduced in fluxcd#330, and partially addressed in fluxcd#369. Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
souleb
pushed a commit
to souleb/image-automation-controller
that referenced
this pull request
Mar 12, 2024
Fixes regression in which IAC will fail to update push branch when the push branch already exists and checkout branch is ahead. The reconciliation errors with: 'cannot push because a reference that you are trying to update on the remote contains commits that are not present locally.' Regression introduced on fluxcd#330. Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
souleb
pushed a commit
to souleb/image-automation-controller
that referenced
this pull request
Mar 12, 2024
Fixes regression in which we fail to push to a branch after switching to a branch, if origin is ahead of local. Fixed by setting the upstream commit as the local branch target. Regression introduced in fluxcd#330, and partially addressed in fluxcd#369. Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes replacing go-git with git2go introduced a bug in which pushes into new branches squashes all commits into one.
Relates to: #329