diff --git a/sync/README.md b/sync/README.md index ea72e84..6e7c3f7 100644 --- a/sync/README.md +++ b/sync/README.md @@ -1,6 +1,10 @@ # Repo Sync This subdir is intended for syncing repos on with +## 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. diff --git a/sync/repos.csv b/sync/repos.csv index 8fc79e6..354a175 100644 --- a/sync/repos.csv +++ b/sync/repos.csv @@ -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 \ No newline at end of file +9,https://gitlab.com/compsoc1/skynet/ldap/backend.git diff --git a/sync/sync.sh b/sync/sync.sh index 4bb5df3..4ada4b6 100644 --- a/sync/sync.sh +++ b/sync/sync.sh @@ -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 }