Ralph Bean
19b7d1c701
Flip pkgs/dist-git over to use the gitolite Alias feature.
2016-01-04 16:29:40 +00:00
Ralph Bean
39226522ce
Use the correct copy of gitolite.conf.
2015-12-22 18:27:17 +00:00
Ralph Bean
cc985b5531
Fix one conditional.
2015-12-22 18:14:51 +00:00
Ralph Bean
b581e4a6f9
Use the gitolite Alias feature in staging.
2015-12-22 17:37:06 +00:00
Ralph Bean
a9f1d0ca6f
Don't do the magic dist-git map in staging. Work towards phasing it out.
2015-12-22 17:19:42 +00:00
Ralph Bean
a57d418bfb
Make gitolite.rc a template.
2015-12-22 16:49:28 +00:00
Ralph Bean
1392043bbd
Switch the order of our two big pkgdb calls to resolve a race condition.
2015-12-18 16:22:10 +00:00
Pierre-Yves Chibon
d29eec75ab
Only symlink if there isn't already one
2015-12-18 17:13:58 +01:00
Ralph Bean
76cc69c4a9
Map one way, or the other.
2015-12-18 16:01:47 +00:00
Ralph Bean
b8b5536e05
Exit if genacls.sh encounters an error.
2015-12-18 15:22:36 +00:00
Ralph Bean
45724ecd35
Do it live.
2015-12-18 14:30:43 +00:00
Ralph Bean
0a5ca36a62
Modify gl-conf in staging for dist-git acls.
2015-12-17 21:57:13 +00:00
Ralph Bean
2bca286974
Make genacls.sh a template.
2015-12-17 21:54:17 +00:00
Ralph Bean
0e2ee11f58
Conditionalize that so I can debug in stg.
2015-12-17 17:32:13 +00:00
Pierre-Yves Chibon
6750a233fd
Turn off namespacing in gitolite for the moment
2015-12-17 18:21:25 +01:00
Pierre-Yves Chibon
d0639e74d2
Needs some space otherwise endup in the same line
2015-12-17 17:46:54 +01:00
Pierre-Yves Chibon
8a58b9049a
Style
2015-12-17 17:45:31 +01:00
Pierre-Yves Chibon
1dff3ce655
Fix symlinking the new repo to the old location
2015-12-17 17:44:57 +01:00
Ralph Bean
26141bb5e0
Fix GIT_FOLDER for prod.
2015-12-17 16:37:09 +00:00
Pierre-Yves Chibon
f7fa7a6822
Upon new package git creation, create symlink to old location
2015-12-15 17:20:54 +01:00
Pierre-Yves Chibon
705d5df833
Invoke mkbranch and setup_git_package with ns/pkgname as package name
2015-12-11 13:43:52 +01:00
Pierre-Yves Chibon
382d837d7a
Update pkgdb_sync_git_branches to the new pkgdb API while remaining backward compatible
...
This commit also adds a TEST_ONLY global boolean useful if you want to
test the script without modifying anything on the filesystem.
2015-12-11 13:35:19 +01:00
Pierre-Yves Chibon
d4307d396e
Fix indentation in genacls.pkgdb
2015-12-11 12:30:49 +01:00
Pierre-Yves Chibon
32f824900c
Port genacls.pkgdb to the new pkgdb API while being backward compatible with the old one
2015-12-11 12:17:35 +01:00
Pierre-Yves Chibon
c8d7b8485b
Store the key in a variable
2015-11-20 17:29:32 +01:00
Dennis Gilmore
5c0a086356
changes for branching
...
Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org >
2015-07-15 06:35:24 +00:00
Ralph Bean
f86bafdf03
(fedmenu) extract the package name from the url.
2015-04-24 17:45:47 +00:00
Ralph Bean
b1d54a9d96
Add forgotten slash.
2015-04-24 17:34:47 +00:00
Ralph Bean
498ca4f3e9
Try the fedmenu header for stg cgit.
2015-04-24 17:28:25 +00:00
Ralph Bean
fbccedc4e6
Try adding a custom cgit header for staging.
2015-04-24 17:17:53 +00:00
Kevin Fenzi
ae9eaa4966
Try and fix git branches sync to work with git packed refs.
2015-03-06 21:48:13 +00:00
Patrick Uiterwijk
6bb938abfe
Make pkgdb_sync more resilient by always calling SETUP_PACKAGE if master does not exist
...
This should make it recover in case there are any repos in a weird state (aka, no master branch).
This could for example happen if the package was created in pkgdb after pkgdb_sync ran, but before
genacls.pkgdb runs, because then gitolite will see it as a new repo, and create a totally blank repo.
Especially since pkgdb_sync will abort after the first error, it would then leave all later created
repos broken as well.
Calling setup_git_package in a repo without master branch has no ill effect:
- Running git init on a pre-initialized repo is a no-op (or at least doesn't destroy current git data)
- Since it doesn't have master, it didn't run the script, so adding the first commit and hooks etc are
what we want the script to do
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com >
2015-02-27 23:26:49 +00:00
Patrick Uiterwijk
12e10d8279
Only remove master from request if it was requested
...
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com >
2015-02-25 13:42:49 +00:00
Patrick Uiterwijk
2c7598455b
Publish master creation
2015-02-24 09:48:16 +00:00
Patrick Uiterwijk
1365500c17
Creating branches is now started by genacls.sh.
...
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com >
2015-02-24 09:40:25 +00:00
Patrick Uiterwijk
0243923759
setup_git_repo creates master
2015-02-19 16:20:25 +00:00
Patrick Uiterwijk
586efb310d
Remove source_branch stuff, and refuse to create master branch to pre-existing repo
2015-02-19 15:10:41 +00:00
Pierre-Yves Chibon
1adc8fae3e
Formatting and add the f22 branch
2015-02-19 13:54:05 +01:00
Pierre-Yves Chibon
52ff90ba9c
Drop the fas.conf specific to distgit
2015-01-23 17:59:36 +01:00
Pierre-Yves Chibon
79eb0db7c0
Let distgit install its own fas.conf after the first run of fas_client
2015-01-23 15:06:47 +01:00
Pierre-Yves Chibon
bfa2f9bb43
Use the stg pkgdb when retrieving the groups
2015-01-23 10:08:57 +01:00
Pierre-Yves Chibon
2f3cd0f177
Oupsy forgot the template
2015-01-22 17:01:14 +01:00
Pierre-Yves Chibon
797c5434a3
Adjust genacls.pkgdb to mention running our hook
2015-01-22 15:40:15 +01:00
Mathieu Bridon
d46dc1095c
Setup for F21 branching
...
This change had been made by Dennis Gilmore in puppet (commit 8dc43c),
I'm just porting it here to Ansible so we don't miss it.
2014-09-24 12:26:07 +02:00
Mathieu Bridon
5dd40fdfbf
Add support for packaging groups
...
This had already been done by Pierre-Yves Chibon in puppet (commits
4cc2ef and 47f29f), I'm just porting it here in Ansible so we don't miss
it.
2014-09-24 12:26:07 +02:00
Pierre-Yves Chibon
13465f6a0d
Try fixing indentation
2014-09-10 12:08:45 +02:00
Pierre-Yves Chibon
0d2ca2d93d
Print the error message if there is one
2014-09-09 12:02:44 +02:00
Pierre-Yves Chibon
b9dbd0b681
Accesss stdout in VERBOSE we do not need it otherwise
2014-09-09 12:02:44 +02:00
Pierre-Yves Chibon
3341c84d01
Let genacls.pkgdb use the pkgdb.stg instance in stg
2014-09-09 10:56:41 +02:00
Pierre-Yves Chibon
0d41c13df1
Move the genacls.pkgdb script to the template directory
2014-09-09 10:55:12 +02:00