mirror of
https://github.com/cmderdev/cmder.git
synced 2025-02-15 01:40:22 +08:00
fix git detection statement
This commit is contained in:
parent
502129d4f9
commit
5c3f46fd88
@ -72,7 +72,7 @@ function Get-VersionStr() {
|
|||||||
{
|
{
|
||||||
|
|
||||||
# Determine if the current diesctory is a git repository
|
# Determine if the current diesctory is a git repository
|
||||||
$GitPresent = Invoke-Expression "git rev-parse --is-inside-work-tree" -erroraction SilentlyContinue 2>$null
|
$GitPresent = Invoke-Expression "git rev-parse --is-inside-work-tree" -erroraction SilentlyContinue
|
||||||
|
|
||||||
if ( $GitPresent -eq 'true' )
|
if ( $GitPresent -eq 'true' )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user