fix issue with first key add to new repo
This commit is contained in:
parent
c78ce746e5
commit
5c69f929d3
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,10 @@ class ProjectsController < ApplicationController
|
||||||
Project.transaction do
|
Project.transaction do
|
||||||
@project.save!
|
@project.save!
|
||||||
@project.users_projects.create!(:admin => true, :read => true, :write => true, :user => current_user)
|
@project.users_projects.create!(:admin => true, :read => true, :write => true, :user => current_user)
|
||||||
|
|
||||||
|
# when project saved no team member exist so
|
||||||
|
# project repository should be updated after first user add
|
||||||
|
@project.update_repository
|
||||||
end
|
end
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
Loading…
Reference in a new issue