From 370bc19ed7bc3fe377bf422bda6d534c35318f10 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Thu, 4 Aug 2022 19:31:57 +0200 Subject: [PATCH] Updated the git calls to use ssh:// protocol. --- src/octojpack | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/octojpack b/src/octojpack index d058f50..9b4620d 100755 --- a/src/octojpack +++ b/src/octojpack @@ -931,7 +931,7 @@ function setRepository() { # check if the repository exist on our gitea instance local update_repo # shellcheck disable=SC2015 - if git ls-remote "git@${VDM_PACKAGE_URL}:${VDM_PACKAGE_OWNER}/${VDM_PACKAGE_REPO}.git" -q >/dev/null 2>&1; then + if git ls-remote "ssh://git@${VDM_PACKAGE_URL}:${VDM_PACKAGE_OWNER}/${VDM_PACKAGE_REPO}.git" -q >/dev/null 2>&1; then getExistingRepository || return 23 update_repo=true else @@ -990,7 +990,7 @@ function getExistingRepository() { # little information of progress _echo "[info] Getting (${VDM_PACKAGE_OWNER}/${VDM_PACKAGE_REPO}) repository" # clone the existing repository - git clone "git@${VDM_PACKAGE_URL}:${VDM_PACKAGE_OWNER}/${VDM_PACKAGE_REPO}.git" >/dev/null 2>&1 || return 23 + git clone "ssh://git@${VDM_PACKAGE_URL}:${VDM_PACKAGE_OWNER}/${VDM_PACKAGE_REPO}.git" >/dev/null 2>&1 || return 23 # success return 0 } @@ -1016,7 +1016,7 @@ function setGitRepository() { # little information of progress _echo "[info] Adding remote branch to (${VDM_PACKAGE_OWNER}/${VDM_PACKAGE_REPO}) repository" # add the remote branch - git remote add origin "git@${VDM_PACKAGE_URL}:${VDM_PACKAGE_OWNER}/${VDM_PACKAGE_REPO}.git" >/dev/null 2>&1 || return 29 + git remote add origin "ssh://git@${VDM_PACKAGE_URL}:${VDM_PACKAGE_OWNER}/${VDM_PACKAGE_REPO}.git" >/dev/null 2>&1 || return 29 #success return 0 }