You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Name Value
---------
PSVersion 6.1.0-rc.1
PSEdition Core
GitCommitId 6.1.0-rc.1
OS Microsoft Windows 10.0.16299
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Git version:
git version 2.18.0.windows.1
Operating system name and version:
OS Microsoft Windows 10.0.16299
Issue Description
When I input "git push --force-" then tab, I got "git push --force-with-lease=".
The last character "=" make the command failed, after I remove "=", it works.
I have tried to search the "--force-with-lease" in this repository, I find this test case:
$result-contains'--force-with-lease='| Should Be $true
some other commands end with "=" was found, I am not sure if they worked or not
$result -contains '--exec=' | Should Be $true
$result -contains '--receive-pack=' | Should Be $true
$result -contains '--recurse-submodules=' | Should Be $true
$result -contains '--repo=' | Should Be $true
$result = & $module GitTabExpansionInternal 'git push --recurse-submodules='
The text was updated successfully, but these errors were encountered:
If you have time, please submit a PR to remove the optional = from test and code. There may be other instances of = on parameters where it's really optional, too.
There are some parameters (e.g. git merge --strategy=ours) where the value is required, so we can't just strip all of them. For the most part our parameter lists were copied from git-completion.bash, which apparently handles the optional = differently for some commands?
System Details
SHA-1: 836ec8c
git version 2.18.0.windows.1
OS Microsoft Windows 10.0.16299
Issue Description
When I input "git push --force-" then tab, I got "git push --force-with-lease=".
The last character "=" make the command failed, after I remove "=", it works.
I have tried to search the "--force-with-lease" in this repository, I find this test case:
posh-git/test/GitParamTabExpansion.Tests.ps1
Line 13 in b428c3c
some other commands end with "=" was found, I am not sure if they worked or not
The text was updated successfully, but these errors were encountered: