-
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
Git tag error despite using hint #2785
Comments
That error message appears to be from Does the tag already exist, or are your arguments in the reverse order? Ultimately, what were you trying to do? |
Tag 'v2.1.1' exists while '2.1.1' is the new name. The command was provided by GIT itself, so if its the wrong order, blame GIT. The expected results link answers your last one. |
Try quoting
|
@dscho You're suggestion is correct, on the flip side, I needed to surround BOTH tag values in quotes: |
Okay. In my tests, it was not necessary to quote the "2.1.1", but maybe I hold this thing wrong. In any case, I think this is to be expected. Git cannot possibly guess that you're in a PowerShell instead of a POSIX shell (such as Bash), therefore it cannot really make sure that the command-line you are presented with uses PowerShell quoting rules. So unless anybody here has any splendid ideas, I think we will need to close this ticket without having a better solution. |
How about a warning stating the hint is geared for a POSIX shell and that changes like quoting would be required. |
Possibly c/should be part of our FAQ's (user editable) or the Known issues of the Release notes (PR against the BuildExtra repo that holds that bit. |
Setup
defaults?
to the issue you're seeing?
Windows OpenSSH preview V8.1.0.0p1
Details
PowerShell 7
Minimal, Complete, and Verifiable example
this will help us understand the issue.
Note: This was provided by GIT itself as a hint
Expected results
error: switch `n' expects a numerical value
URL to that repository to help us with testing?
Unknown ATM.
The text was updated successfully, but these errors were encountered: