git host fixed
This commit is contained in:
parent
8f4a0bd174
commit
8134fe0efe
7 changed files with 14 additions and 8 deletions
|
@ -19,7 +19,7 @@ class Key < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def update_gitosis
|
||||
GitoProxy.system.new.configure do |c|
|
||||
Gitlabhq::GitHost.system.new.configure do |c|
|
||||
c.update_keys(identifier, key)
|
||||
|
||||
projects.each do |project|
|
||||
|
@ -29,7 +29,7 @@ class Key < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def gitosis_delete_key
|
||||
GitoProxy.system.new.configure do |c|
|
||||
Gitlabhq::GitHost.system.new.configure do |c|
|
||||
c.delete_key(identifier)
|
||||
|
||||
projects.each do |project|
|
||||
|
|
|
@ -95,6 +95,10 @@ class Project < ActiveRecord::Base
|
|||
notes.where(:noteable_id => commit.id, :noteable_type => "Commit")
|
||||
end
|
||||
|
||||
def has_commits?
|
||||
!!commit
|
||||
end
|
||||
|
||||
def add_access(user, *access)
|
||||
opts = { :user => user }
|
||||
access.each { |name| opts.merge!(name => true) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue