Commit graph

10 commits

Author SHA1 Message Date
Pierre-Yves Chibon
e5fa3f7374 Point to /srv/git/repositories as this is both backward and forward compatible
And adjust the documentation to mkbranch
2015-12-11 13:44:18 +01:00
Patrick Uiterwijk
6e98a2dc66 Fix setup_git_package to handle setting up after gitolite setup a broken repo
setup_git_package did the same check as pkgdb_sync did [1].

Also, if gitolite already came by, it will have created an update hook, which blocks us from pushing the initial commit (since gitolite has no idea who we are).
So in that case, we will just remove the update hook: gitolite will recreate it when it comes by the repo with genacls.sh.

The change to mkdir -p is just synto make it not print an error in case the directory already existed.

[1]: https://lists.fedoraproject.org/pipermail/infrastructure/2015-February/015600.html

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2015-02-27 23:44:20 +00:00
Patrick Uiterwijk
afa5f86ab9 Feel free to run this as root, mmkey? 2015-02-23 21:51:43 +00:00
Patrick Uiterwijk
ea48d2a2a9 When a bare repo is created, HEAD is invalid, so cloning won't work. 2015-02-19 15:56:46 +00:00
Mathieu Bridon
3ed1da51ca distgit: Remove the update-chained stuff
This doesn't work with Gitolite.
2015-01-23 11:23:28 +01:00
Pierre-Yves Chibon
2eee8a28fe Add the gitolite update hook 2015-01-23 10:13:12 +01:00
Pierre-Yves Chibon
40536895b3 No need to install our hook ourself anymore 2015-01-22 15:40:15 +01:00
Pierre-Yves Chibon
a0f3bc7aad Fix path to the gitolite update hook 2015-01-21 11:01:03 +01:00
7ab3ff2817 distgit: Block push of branches named 'origin/*'
We already use the update hook for gitolite.

This introduces a new update hook, which merely chains the gitolite one,
and a new one to block pushes to badly named branches.

The new hook was written originally by Till Maas.

https://fedorahosted.org/rel-eng/ticket/4071
2014-10-27 10:48:12 +01:00
30ab4bd528 Add a new distgit role
This is the meat of Dist Git, but it requires quite a few of the roles
previously created.
2014-08-26 18:28:28 +00:00