Skip to content

Commit 61acb30

Browse files
committed
Fix problem where http is incorrect
1 parent d44363f commit 61acb30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

assets/helpers/git.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ configure_git_ssl_verification() {
3535
add_pullrequest_metadata_basic() {
3636
# $1: pull request number
3737
# $2: pull request repository
38+
# $3: skip ssl verification
3839
local repo_name=$(basename "$2" | sed "s/.git$//")
3940
local repo_project=$(basename $(dirname "$2"))
4041

4142
# parse uri and retrieve host
4243
uri_parser "$2"
43-
local repo_host="${uri_schema}://${uri_address}"
44+
local repo_host="${uri_schema}://${uri_address}"$(getBasePathOfBitbucket)
4445

4546
local title=$(set -o pipefail; bitbucket_pullrequest "$repo_host" "$repo_project" "$repo_name" "$1" "" "$3" | jq -r '.title')
4647
local commit=$(git rev-parse HEAD)
@@ -86,6 +87,7 @@ add_pullrequest_metadata_commit() {
8687
pullrequest_metadata() {
8788
# $1: pull request number
8889
# $2: pull request repository
90+
# $3: skip ssl verification
8991

9092
local source_commit=$(git rev-list --parents -1 $(git rev-parse HEAD) | awk '{print $3}')
9193
local target_commit=$(git rev-list --parents -1 $(git rev-parse HEAD) | awk '{print $2}')

0 commit comments

Comments
 (0)