make sure gl-perms exists, even if it is empty...

I expect this to help if we optimise the rule generation by caching.
This commit is contained in:
Sitaram Chamarty 2012-11-06 06:19:13 +05:30
parent 70ad045e08
commit be61cd2d66
3 changed files with 4 additions and 2 deletions

View file

@ -191,7 +191,7 @@ sub new_wild_repo {
trigger( 'PRE_CREATE', $repo, $user, $aa );
new_repo($repo);
_print( "$repo.git/gl-creator", $user );
_print( "$repo.git/gl-perms", "$rc{DEFAULT_ROLE_PERMS}\n" ) if $rc{DEFAULT_ROLE_PERMS};
_print( "$repo.git/gl-perms", ( $rc{DEFAULT_ROLE_PERMS} ? "$rc{DEFAULT_ROLE_PERMS}\n" : "" ) );
trigger( 'POST_CREATE', $repo, $user, $aa );
_chdir( $rc{GL_ADMIN_BASE} );