cmder icon indicating copy to clipboard operation
cmder copied to clipboard

Startup warning

Open tnagyce opened this issue 10 years ago • 9 comments

Hi!

I've installed the latest version of cmder (1.2.9) and now I'm getting this warning message:

WARNING: posh-git requires Git 1.7.2 or better. You have .

If I start the PowerShell the posh-git works OK (no error message), but in cmder I don't get the nicely formatted status in the git directory as in PowerShell.

Running the git --version command in cmder outputs the following: git version 2.7.0.windows.1

What am I missing?

tnagyce avatar Jan 31 '16 18:01 tnagyce

Where have you installed cmder?

MartiUK avatar Jan 31 '16 19:01 MartiUK

C:\cmder

And the posh-git module is here: C:\Users\yce\Documents\WindowsPowerShell\Modules\posh-git

tnagyce avatar Jan 31 '16 19:01 tnagyce

Try putting it on your desktop/user dir, permissions can mess things up

MartiUK avatar Jan 31 '16 19:01 MartiUK

It's still the same, even when I run the cmder as administrator.

tnagyce avatar Jan 31 '16 19:01 tnagyce

I have the exact same problem on Windows 7, PowerShell 4.

Saturate avatar Mar 03 '16 11:03 Saturate

Run this: (git --version) -match '(?<ver>\d+(?:\.\d+)+)' I've taken it directly from the posh-git checkversion script.

Does it return True? If so you may have an older version of posh-git already installed, try reinstalling it with: Update-Module posh-git

If False let me know what git --version returns.

MartiUK avatar Mar 03 '16 11:03 MartiUK

It returns True.

Updating gives me this:

λ Update-Module posh-git
Module posh-git was successfully updated.
WARNING: posh-git requires Git 1.7.2 or better. You have .

So no luck :-(

Also ran a Get-PsGetModuleInfo Posh-git that gave me this:

Title             : posh-git
ModuleName        : posh-git
Id                : posh-git
Description       : A set of PowerShell scripts which provide Git/PowerShell integration
Updated           : 20-12-2011 10:16:10
Type              : ZIP
Verb              : GET
ModuleUrl         : https://github.com/dahlbyk/posh-git/zipball/master/
DownloadUrl       : https://github.com/dahlbyk/posh-git/zipball/master/
NoPostInstallHook : False
PostInstallHook   :
PostUpdateHook    : none

Saturate avatar Mar 03 '16 12:03 Saturate

After I've reinstalled windows the problem has gone :)

tnagyce avatar Apr 22 '16 11:04 tnagyce

Bit of an extreme fix but ok. Sounded like the path git was found at wasn't the version either your or cmder were expecting.

Jackbennett avatar May 26 '16 11:05 Jackbennett