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

Push branch with no upstream defaults to first remote and not to "origin" #3821

Closed
pmme opened this issue Jul 7, 2017 · 0 comments
Closed

Comments

@pmme
Copy link
Contributor

pmme commented Jul 7, 2017

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
Executing push on a local branch with no upstream defaults to first configured remote (actually a colleague's computer) and not to the remote specifically named "origin".
I believe defaulting to "origin" would be consistent with the behaviour of executing 'git push' without specifying the remote.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

  1. Configure a repository with two remotes, "origin" and one that is alphabetically earlier than "origin", e.g. "aremote"
  2. Create a new branch.
  3. Open the GitExtensions Push dialog.
  4. Observe that the combo-box for Remote defaults to the first alphabetically sorted remote and not "origin".

What is the expected behavior?
Remote will default to "origin".

Which versions of GitExtensions, GIT and Windows are affected by this issue? Did this work in previous versions of our tool?

  • GitExtensions 2.50.00
  • git version 2.12.2.windows.1
  • Windows 7
    As I recall, GitExtensions 2.49.* defaulted to pushing to "origin" if the branch did not have a configured remote.
@jbialobr jbialobr added this to the 2.50.01 milestone Jul 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants