made a fabric task to migrate repos authored by anarcat's avatar anarcat
......@@ -300,26 +300,10 @@ See [issue tpo/tpa/team#41181](https://gitlab.torproject.org/tpo/tpa/team/-/issu
#### TPA part: lock down the repository and add redirections
4. make an (executable) `pre-receive` hook in `git-rw` with an exit
status of `1` warning about the new code location, example:
root@cupani:~# cat /srv/git.torproject.org/repositories/pluggable-transports/goptlib.git/hooks/pre-receive
#!/bin/sh
cat <<EOF
This repository has been migrated to GitLab:
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib/
Update your remotes to:
status of `1` warning about the new code location, this can be
done with this Fabric command:
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib.git
See this issue for details:
https://gitlab.torproject.org/tpo/tpa/team/-/issues/41182
EOF
exit 1
fab -H cupani.torproject.org gitolite.migrate-repo pluggable-transports/goptlib tpo/anti-censorship/pluggable-transports/goptlib --issue-url=https://gitlab.torproject.org/tpo/tpa/team/-/issues/41182
4. in Gitolite, make the project part of the "Attic", for example
......
......