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

Add --empty=keep to backport command #15028

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Add --empty=keep to backport command #15028

merged 1 commit into from
Aug 29, 2024

Conversation

vcsjones
Copy link
Member

If the pull request being back ported contains an empty commit, the backport command will fail during git am since it has not been instructed what to do with an empty commit.

This changes the backport command to preserve the empty commit.

See this pull request from dotnet/runtime for an example of the backport command failing in the presence of an empty commit: dotnet/runtime#106779

If the pull request being back ported contains an empty commit, the backport command will fail during `git am` since it has not been instructed what to do with an empty commit.

This changes the backport command to preserve the empty commit.
@vcsjones
Copy link
Member Author

@akoeplinger since you have the most history with this, any objections to this change?

@akoeplinger akoeplinger merged commit 8ce91d7 into main Aug 29, 2024
4 checks passed
@akoeplinger akoeplinger deleted the backport-keep-empty branch August 29, 2024 12:10
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.

3 participants