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

git submit --forge branch fails when a remote ref has been deleted #1178

Open
arxanas opened this issue Dec 31, 2023 · 0 comments
Open

git submit --forge branch fails when a remote ref has been deleted #1178

arxanas opened this issue Dec 31, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@arxanas
Copy link
Owner

arxanas commented Dec 31, 2023

Description of the bug

  1. Create a remote branch, such as with git submit --create.
  2. Delete the branch on the remote (e.g. Github after merging a pull request).
  3. git submit the same branch, whose remote ref no longer exists.

Expected behavior

Some kind of error message? The rest of the branch pushes should probably succeed, and this one can be reported in a "failed" section. Possibly even the remote branch should be created again or the local branch should be deleted; not sure. (Note that we can tell the difference between a branch that has a remote-tracking branch and a branch that has never been pushed to a remote.)

Actual behavior

When we try to fetch the now-deleted ref, it fails because it has been deleted, and, subsequently, the whole operation fails.

Version of rustc

No response

Automated bug report

No response

Version of git-branchless

git-branchless-opts 0.8.0

Version of git

git version 2.42.0

@arxanas arxanas added the bug Something isn't working label Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant