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
|
# Transfer back into the source organisation
|
||||||
if [ $TRANSFER ] ; then
|
if [ $TRANSFER ] ; then
|
||||||
curl -X 'POST' \
|
curl "$SILENT" -X 'POST' \
|
||||||
"$GITEAURL/api/v1/repos/$TARGETORG/$TARGETPKG/transfer" \
|
"$GITEAHOST/api/v1/repos/$TARGETORG/$TARGETPKG/transfer" \
|
||||||
-H 'accept: application/json' \
|
-H 'accept: application/json' \
|
||||||
-H "Authorization: token $GITEAACCESSTOKEN" \
|
-H "Authorization: token $GITEAACCESSTOKEN" \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-d '{ "new_owner": "'"$SOURCEORG"'" }'
|
-d '{
|
||||||
|
"new_owner": "'"$SOURCEORG"'"
|
||||||
|
}'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $NOOUTPUT ]] ; then
|
if [[ -z $NOOUTPUT ]] ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user