Skip to content

Commit

Permalink
feat: ✨ Add Bitbucket config
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Nardon dos Santos <felipe.santos@livelo.com.br>
  • Loading branch information
Felipe Nardon dos Santos committed Nov 24, 2023
1 parent af5e678 commit d95a885
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mkdocs_multirepo_plugin/scripts/sparse_clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ if [[ -n "$AccessToken" ]]; then
git config http.extraheader "AUTHORIZATION: bearer $AccessToken"
elif [[ -n "$GithubAccessToken" ]]; then
url_to_use="${protocol}://x-access-token:$GithubAccessToken@$url_rest"
elif [[ -n "$BitbucketAcessToken" ]]; then
url_to_use="$url"
git config http.extraheader "AUTHORIZATION: Bearer $BitbucketAcessToken"
else
url_to_use="$url"
fi
Expand Down
3 changes: 3 additions & 0 deletions mkdocs_multirepo_plugin/scripts/sparse_clone_old.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ if [[ -n "$AccessToken" ]]; then
git config http.extraheader "AUTHORIZATION: bearer $AccessToken"
elif [[ -n "$GithubAccessToken" ]]; then
url_to_use="${protocol}://x-access-token:$GithubAccessToken@$url_rest"
elif [[ -n "$BitbucketAcessToken" ]]; then
url_to_use="$url"
git config http.extraheader "AUTHORIZATION: Bearer $BitbucketAcessToken"
else
url_to_use="$url"
fi
Expand Down

0 comments on commit d95a885

Please sign in to comment.