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

Startup warning #821

Closed
ycecube opened this issue Jan 31, 2016 · 9 comments
Closed

Startup warning #821

ycecube opened this issue Jan 31, 2016 · 9 comments

Comments

@ycecube
Copy link

ycecube commented Jan 31, 2016

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?

@MartiUK
Copy link
Member

MartiUK commented Jan 31, 2016

Where have you installed cmder?

@ycecube
Copy link
Author

ycecube commented Jan 31, 2016

C:\cmder

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

@MartiUK
Copy link
Member

MartiUK commented Jan 31, 2016

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

@ycecube
Copy link
Author

ycecube commented Jan 31, 2016

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

@Saturate
Copy link

Saturate commented Mar 3, 2016

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

@MartiUK
Copy link
Member

MartiUK commented Mar 3, 2016

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.

@Saturate
Copy link

Saturate commented Mar 3, 2016

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

@ycecube
Copy link
Author

ycecube commented Apr 22, 2016

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

@Jackbennett
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants