GITEAHOST not GITEAURL
This commit is contained in:
parent
2036ae59f4
commit
901042b562
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user