check code not data
This commit is contained in:
parent
9cd1d56a72
commit
1116647ec2
@ -163,7 +163,7 @@ fi
|
|||||||
|
|
||||||
# migrate the source package over to target with updated fields
|
# migrate the source package over to target with updated fields
|
||||||
if [ $DEBUG ] ; then echo "Migrating $SOURCEORG/$SOURCEPKG as $TARGETORG/$1 on $TARGETHOST" ; fi
|
if [ $DEBUG ] ; then echo "Migrating $SOURCEORG/$SOURCEPKG as $TARGETORG/$1 on $TARGETHOST" ; fi
|
||||||
RESPONSE=$(curl $SILENT -k -X 'POST' \
|
RESPONSE=$(curl $SILENT $checkSSL -X 'POST' \
|
||||||
"$GITEAHOST/api/v1/repos/migrate" \
|
"$GITEAHOST/api/v1/repos/migrate" \
|
||||||
-H 'accept: application/json' \
|
-H 'accept: application/json' \
|
||||||
-H "Authorization: token $GITEAACCESSTOKEN" \
|
-H "Authorization: token $GITEAACCESSTOKEN" \
|
||||||
@ -179,7 +179,7 @@ RESPONSE=$(curl $SILENT -k -X 'POST' \
|
|||||||
|
|
||||||
# Migrate does NOT copy accross the issues and wiki external links
|
# Migrate does NOT copy accross the issues and wiki external links
|
||||||
# grab WIKILINK from source package
|
# grab WIKILINK from source package
|
||||||
WIKILINK=$(curl "$SILENT" -X 'GET' \
|
WIKILINK=$(curl "$SILENT" "$checkSSL" -X 'GET' \
|
||||||
"$GITEAHOST/api/v1/repos/$SOURCEORG/$SOURCEPKG" \
|
"$GITEAHOST/api/v1/repos/$SOURCEORG/$SOURCEPKG" \
|
||||||
-H 'accept: application/json' \
|
-H 'accept: application/json' \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
@ -284,7 +284,7 @@ git push origin &> /dev/null
|
|||||||
|
|
||||||
# Transfer back into the source organisation
|
# Transfer back into the source organisation
|
||||||
if [ $TRANSFER ] ; then
|
if [ $TRANSFER ] ; then
|
||||||
RESPONSE=$(curl "$SILENT" -X 'POST' \
|
RESPONSE=$(curl "$SILENT" "$checkSSL" -o /dev/null -w "%{http_code}" -X 'POST' \
|
||||||
"$GITEAHOST/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" \
|
||||||
|
Loading…
Reference in New Issue
Block a user