fix: this should now work (?)
This commit is contained in:
parent
f116c3fb25
commit
8fecc941c7
3 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,10 @@
|
|||
# Repo Sync
|
||||
This subdir is intended for syncing repos on <gitlab.skynet.ie> with <gitlab.com>
|
||||
|
||||
## CSV file
|
||||
This file is in the format of local id and remote link.
|
||||
It must end on a newline
|
||||
|
||||
## Tokens
|
||||
Tokens have a lifetime of a year.
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
id_local, remote_url
|
||||
4,https://gitlab.com/compsoc1/skynet/nixos.git
|
||||
9,https://gitlab.com/compsoc1/skynet/ldap/backend.git
|
||||
9,https://gitlab.com/compsoc1/skynet/ldap/backend.git
|
||||
|
|
|
|
@ -26,7 +26,6 @@ Mirror-Create(){
|
|||
local body="url=https://oauth2:$token_remote@$REPO&enabled=true&only_protected_branches=false&keep_divergent_refs=false"
|
||||
local uri="https://gitlab.skynet.ie/api/v4/projects/$id/remote_mirrors"
|
||||
echo $uri
|
||||
echo $body
|
||||
local tmp=""
|
||||
curl -X "POST" "$uri" --header "PRIVATE-TOKEN: $token" --data $body
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue