Skip to content

Commit

Permalink
remove rest
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Oct 26, 2023
1 parent e7f9f66 commit 54c67ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vcsclient/bitbucketserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ func (client *BitbucketServerClient) mapBitbucketServerCommitToCommitInfo(commit
parents[i] = p.ID
}
url := fmt.Sprintf("%s/projects/%s/repos/%s/commits/%s",
client.vcsInfo.APIEndpoint, owner, repo, commit.ID)
strings.TrimSuffix(client.vcsInfo.APIEndpoint, "/rest"), owner, repo, commit.ID)
return CommitInfo{
Hash: commit.ID,
AuthorName: commit.Author.Name,
Expand Down

0 comments on commit 54c67ff

Please sign in to comment.