Skip to content

Commit 13d8ca5

Browse files
authored
chore(generator): remove ssh postfix from clone url variable name (#280)
git can clone via every supported protocol, no need to include some protocol in the variable name
1 parent 13cbeef commit 13d8ca5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/sdk-create-pr.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ if [ ! -d "${SDK_REPO_LOCAL_PATH}" ]; then
2828
fi
2929

3030
if [[ -z $3 ]]; then
31-
REPO_URL_SSH="git@github.com:stackitcloud/stackit-sdk-go.git"
31+
REPO_URL="git@github.com:stackitcloud/stackit-sdk-go.git"
3232
else
33-
REPO_URL_SSH=$3
33+
REPO_URL=$3
3434
fi
3535

3636
if [[ -z $4 ]]; then
@@ -61,7 +61,7 @@ rm -rf "${work_dir}/sdk_to_push/.git"
6161

6262
# Initialize git repo
6363
cd "${work_dir}/git_repo"
64-
git clone "${REPO_URL_SSH}" ./ --quiet
64+
git clone "${REPO_URL}" ./ --quiet
6565
git config user.name "${COMMIT_NAME}"
6666
git config user.email "${COMMIT_EMAIL}"
6767

0 commit comments

Comments
 (0)