comment out unused code
ci/woodpecker/push/woodpecker Pipeline was successful Details

Signed-off-by: Loïc Dachary <loic@dachary.org>
master
Loïc Dachary 2022-09-06 23:33:50 +10:00
parent 43ab5bb75a
commit 1587c6a7b5
Signed by: dachary
GPG Key ID: 992D23B392F9E4F2
1 changed files with 6 additions and 6 deletions

View File

@ -52,12 +52,12 @@ write_ssh(){
}
set_ssh_remote() {
http_remote_url=$(git remote get-url origin)
remote_hostname=$(echo $http_remote_url | cut -d '/' -f 3)
repository_owner=$(echo $http_remote_url | cut -d '/' -f 4)
repository_name=$(echo $http_remote_url | cut -d '/' -f 5)
ssh_remote="git@$remote_hostname:$repository_owner/$repository_name"
ssh_remote="git@gitea.gna.org:Hostea/website.git"
# http_remote_url=$(git remote get-url origin)
# remote_hostname=$(echo $http_remote_url | cut -d '/' -f 3)
# repository_owner=$(echo $http_remote_url | cut -d '/' -f 4)
# repository_name=$(echo $http_remote_url | cut -d '/' -f 5)
# ssh_remote="git@$remote_hostname:$repository_owner/$repository_name"
ssh_remote="git@gitea.gna.org:Gna/website.git"
git remote add $SSH_REMOTE_NAME $ssh_remote
}