GITEAHOST not GITEAURL

This commit is contained in:
Trevor Batley 2023-06-05 09:31:37 +10:00
parent 2036ae59f4
commit 901042b562

View File

@ -282,12 +282,14 @@ git push origin &> /dev/null
# Transfer back into the source organisation
if [ $TRANSFER ] ; then
curl -X 'POST' \
"$GITEAURL/api/v1/repos/$TARGETORG/$TARGETPKG/transfer" \
curl "$SILENT" -X 'POST' \
"$GITEAHOST/api/v1/repos/$TARGETORG/$TARGETPKG/transfer" \
-H 'accept: application/json' \
-H "Authorization: token $GITEAACCESSTOKEN" \
-H 'Content-Type: application/json' \
-d '{ "new_owner": "'"$SOURCEORG"'" }'
-d '{
"new_owner": "'"$SOURCEORG"'"
}'
fi
if [[ -z $NOOUTPUT ]] ; then