-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
The global "remote.origin.push" takes precedence over the local "remote.origin.push". #2236
Comments
Have you been able to test if this is a Windows only problem, or one that should be reported upstream? A relatively easy test is to use the WSL (Windows Subsystem for Linux), which provides a linux version that can be used for comparison. |
@PhilipOakley I tried on Ubuntu and the result is the same. I edited and updated the commands to test.
|
Have you checked that there's not some documentation confusion (one part giving different info compared to another part) regarding priorities? (just in case it's a doc issue;-). Otherwise it's probably best reported upstream to the dev's list git@vger.kernel.org (plain text, absolutely no HTML, expect slight delay for first email), though others here on the windows list may also be able to help. |
The documentation on this is not terribly clear, but Further, in contrast to other multi-var config options, Is there any reason why you want this in the global config? (It does not make all that much sense to me, I have to admit.) And yes, not a Windows-specific issue in the least. This is Git's behavior you described. |
@PhilipOakley So far I can't find any convincing description in any document. |
Did you read the link into the source code I gave you earlier? It is not documentation, but so far I think it is the best you got. |
@dscho In my case, I have several thousand repos. Most of them are hosted in Gerrit and the rest in Gitlab. Gerrit requires a refspec The code explains something but is still not that convincing, and I've found an inconsistent behaviour.
In all the 3 cases, both |
When the system variable is included,
Only
|
This is still true. As such, @PhilipOakley's suggestion to report this to the Git project itself (not the much tinier Windows port) would make most sense. |
This is not a Windows-specific issue. Please take it to the Git mailing list (send plain-text messages, HTML messages are dropped silently). |
Setup
defaults?
to the issue you're seeing?
Details
Minimal, Complete, and Verifiable example
this will help us understand the issue.
URL to that repository to help us with testing?
The text was updated successfully, but these errors were encountered: