>
> The Gitorious console (script/console) however, can help you achieve this, 
> something like this:
>
> project = Project.find_by_slug("<project_slug>")
> team = Group.find_by_name("<team name>")
> project.change_owner_to(team)
>
>
I found that failed for me, giving the error

>  ActiveRecord::RecordInvalid: Validation failed: Committer is already a 
> committer to this repository


This worked better:

  project = Project.find_by_slug("<project-slug>")
  team = Group.find_by_name("team-name")
  project.owner_type = "Group"
  project.owner_id = team.id
  project.save 

-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com

Reply via email to