We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c54d095 commit 7e537abCopy full SHA for 7e537ab
Public/Get-GitModule.ps1
@@ -46,8 +46,6 @@ function Get-GitModule {
46
$ModuleName = ($P1 -split '/')[-1]
47
$tempDir = Join-Path $tmpRoot $ModuleName
48
if (!(Test-Path $tempDir)) {
49
- # Strip .git from variables if a directory that ends with .git isn't located (backwards compatibility)
50
- if ($tempDir.EndsWith('.git')) { $ModuleName = $ModuleName.Substring(0,$ModuleName.Length-4) }
51
Write-Verbose -Message "$(Get-Date -f T) creating directory $tempDir"
52
New-Item $tempDir -ItemType Directory -Force | Out-Null
53
} elseif (Get-ChildItem $tempDir -Force) {
0 commit comments