Skip to content

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
@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.

4 participants