We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19052dc commit f41ef5dCopy full SHA for f41ef5d
external/Get-GitModules.ps1
@@ -14,11 +14,11 @@
14
[String] $PathRegex = "path\s*=\s*(?<path>.*)"
15
[String] $URLRegex = "url\s*=\s*(?<url>.*)"
16
[String] $BranchRegex = "branch\s*=\s*(?<Branch>.*)"
17
-[String] $Arguments = $($args -join " ")
+[String[]] $Arguments = $args
18
19
#------- Script ----------------------------------------------------------------
20
-if ([string]::IsNullOrEmpty($Arguments)) {
21
- $Arguments = "--depth 1"
+if (-not $Arguments) {
+ [String[]]$Arguments = "--depth", "1"
22
}
23
24
foreach ($Line in Get-Content $PSScriptRoot\..\.gitmodules) {
0 commit comments