Skip to content

Commit

Permalink
Fix named branch querying in Get-GitHubRepositoryBranch (#188)
Browse files Browse the repository at this point in the history
We erroneously were putting a question mark in the middle of the
URI fragment when a branch name was being specified.

Resolves #187
  • Loading branch information
HowardWolosky committed May 28, 2020
1 parent 3440909 commit 5807d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GitHubBranches.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function Get-GitHubRepositoryBranch
'RepositoryName' = (Get-PiiSafeString -PlainText $RepositoryName)
}

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

$getParams = @()
Expand Down

0 comments on commit 5807d00

Please sign in to comment.