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-branchless-submit: when --pulling, compares against pull remote instead of push remote #919

Open
arxanas opened this issue Apr 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@arxanas
Copy link
Owner

arxanas commented Apr 25, 2023

Description of the bug

In https://discord.com/channels/915309546984050709/915310626291740752/1098644284351197294, user hank points out that git-branchless-submit behaves strangely when setting pushRemote for an individual branch (rather than for the remote).

To set up:

  1. Set up a pull remote and a push remote for the repository.
  2. Create a branch foo tracking a branch on the pull remote. Ensure that no branch foo exists on the pull remote.
  3. Set branch foo's push remote to the push remote for the repository (i.e. branch.foo.pushRemote).
  4. Run git submit.

Expected behavior

The branch is not pushed since --create was not passed to git submit.

Actual behavior

The branch is pushed even though it doesn't exist on the push remote.

Version of rustc

No response

Automated bug report

No response

Version of git-branchless

No response

Version of git

No response

@arxanas arxanas added the bug Something isn't working label Apr 25, 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