my ($perm, $creator, $wild); if ( $GL_ALL_READ_ALL and $verb =~ $R_COMMANDS and -d "$REPO_BASE/$repo.git") { $perm = 'R'; } else { ($perm, $creator, $wild) = repo_rights($repo); } # it was missing, and you have create perms, so create it new_wild_repo($repo, $user) if ($perm =~ /C/);