Commit 5c69f929d38730d077dcaccf335f05cea90c4e21
1 parent
c78ce746
Exists in
master
and in
4 other branches
fix issue with first key add to new repo
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
app/controllers/projects_controller.rb
| ... | ... | @@ -31,6 +31,10 @@ class ProjectsController < ApplicationController |
| 31 | 31 | Project.transaction do |
| 32 | 32 | @project.save! |
| 33 | 33 | @project.users_projects.create!(:admin => true, :read => true, :write => true, :user => current_user) |
| 34 | + | |
| 35 | + # when project saved no team member exist so | |
| 36 | + # project repository should be updated after first user add | |
| 37 | + @project.update_repository | |
| 34 | 38 | end |
| 35 | 39 | |
| 36 | 40 | respond_to do |format| | ... | ... |