Commit 5c69f929 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

fix issue with first key add to new repo

parent c78ce746
......@@ -31,6 +31,10 @@ class ProjectsController < ApplicationController
Project.transaction do
@project.save!
@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
respond_to do |format|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment