mirror of
https://github.com/cmderdev/cmder.git
synced 2025-02-15 01:40:22 +08:00
Fixed checkGit() in case of submodules
Since Git 1.7.8, submodules don't contain a .git/ folder anymore. Instead, the submodule directory is populated with a .git text file which contains a git-dir: /path/to/superproject/git_dir/modules/name. See, https://github.com/git/git/blob/master/Documentation/RelNotes/1.7.8.txt#L109-L114
This commit is contained in:
parent
842394300f
commit
95bbb8edbb
2
vendor/profile.ps1
vendored
2
vendor/profile.ps1
vendored
@ -53,7 +53,7 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function checkGit($Path) {
|
function checkGit($Path) {
|
||||||
if (Test-Path -Path (Join-Path $Path '.git/') ) {
|
if (Test-Path -Path (Join-Path $Path '.git') ) {
|
||||||
Write-VcsStatus
|
Write-VcsStatus
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user