Changes
Page history
made a fabric task to migrate repos
authored
May 24, 2023
by
anarcat
Show whitespace changes
Inline
Side-by-side
howto/git.md
View page @
9d30234e
...
@@ -300,26 +300,10 @@ See [issue tpo/tpa/team#41181](https://gitlab.torproject.org/tpo/tpa/team/-/issu
...
@@ -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
#### TPA part: lock down the repository and add redirections
4.
make an (executable)
`pre-receive`
hook in
`git-rw`
with an exit
4.
make an (executable)
`pre-receive`
hook in
`git-rw`
with an exit
status of
`1`
warning about the new code location, example:
status of
`1`
warning about the new code location, this can be
done with this Fabric command:
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:
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib.git
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
See this issue for details:
https://gitlab.torproject.org/tpo/tpa/team/-/issues/41182
EOF
exit 1
4.
in Gitolite, make the project part of the "Attic", for example
4.
in Gitolite, make the project part of the "Attic", for example
...
...
...
...