Include the forks in the gitolite configuration
This commit is contained in:
parent
4289a2056c
commit
f22ac8df1d
1 changed files with 12 additions and 0 deletions
|
@ -265,6 +265,16 @@ def update_groups_to_db(namespace, pkg, pkg_groups):
|
||||||
print "ERROR: %s" % err
|
print "ERROR: %s" % err
|
||||||
|
|
||||||
|
|
||||||
|
def add_fork_to_gitolite():
|
||||||
|
''' Creates a sqlalchemy user object for pagure db '''
|
||||||
|
for fork in pagure.lib.search_projects(session=SESSION, forks=True):
|
||||||
|
print ''
|
||||||
|
print 'repo %s' % (fork.fullname)
|
||||||
|
if masters:
|
||||||
|
print ' RWC = %s' % ' '.join(
|
||||||
|
[user.username for user in fork.committers])
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
||||||
TRUSTED = grp.getgrnam('cvsadmin')[3]
|
TRUSTED = grp.getgrnam('cvsadmin')[3]
|
||||||
|
@ -425,4 +435,6 @@ if __name__ == '__main__':
|
||||||
if masters:
|
if masters:
|
||||||
print ' RWC = %s' % ' '.join(masters)
|
print ' RWC = %s' % ' '.join(masters)
|
||||||
|
|
||||||
|
add_fork_to_gitolite()
|
||||||
|
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue