Skip to content

Commit 5807d00

Browse files
Fix named branch querying in Get-GitHubRepositoryBranch (#188)
We erroneously were putting a question mark in the middle of the URI fragment when a branch name was being specified. Resolves #187
1 parent 3440909 commit 5807d00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GitHubBranches.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function Get-GitHubRepositoryBranch
8989
'RepositoryName' = (Get-PiiSafeString -PlainText $RepositoryName)
9090
}
9191

92-
$uriFragment = "repos/$OwnerName/$RepositoryName/branches`?"
92+
$uriFragment = "repos/$OwnerName/$RepositoryName/branches"
9393
if (-not [String]::IsNullOrEmpty($Name)) { $uriFragment = $uriFragment + "/$Name" }
9494

9595
$getParams = @()

0 commit comments

Comments
 (0)