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:
Gregory Pakosz 2016-02-10 14:42:12 +01:00
parent 842394300f
commit 95bbb8edbb

2
vendor/profile.ps1 vendored
View File

@ -53,7 +53,7 @@ try {
}
function checkGit($Path) {
if (Test-Path -Path (Join-Path $Path '.git/') ) {
if (Test-Path -Path (Join-Path $Path '.git') ) {
Write-VcsStatus
return
}