Skip to content

Commit

Permalink
Trim any trailing '/'s on site urls
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-peterson committed Aug 28, 2024
1 parent d254b82 commit cf2c57f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/GitlabCli/GitlabCli.psd1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@{
ModuleVersion = '1.117.1'
ModuleVersion = '1.117.2'

RequiredModules = @('powershell-yaml')

Expand Down Expand Up @@ -27,7 +27,8 @@
ExternalModuleDependencies = @('powershell-yaml')
ReleaseNotes =
@'
https://github.com/chris-peterson/pwsh-gitlab/issues/94
* https://github.com/chris-peterson/pwsh-gitlab/issues/94
* https://github.com/chris-peterson/pwsh-gitlab/issues/97
'@
}
}
Expand Down
1 change: 1 addition & 0 deletions src/GitlabCli/Utilities.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ function Invoke-GitlabApi {
if (-not $GitlabUrl.StartsWith('http')) {
$GitlabUrl = "https://$GitlabUrl"
}
$GitlabUrl = $GitlabUrl.TrimEnd('/')

$SerializedQuery = ''
$Delimiter = '?'
Expand Down

0 comments on commit cf2c57f

Please sign in to comment.