Merge pull request #713 from gitlabhq/fast_automerge

Fast automerge
This commit is contained in:
Dmitriy Zaporozhets 2012-04-22 06:38:39 -07:00
commit 511d07c47c
5 changed files with 67 additions and 11 deletions

View file

@ -101,6 +101,9 @@ module Project::HooksTrait
# Execute web hooks
self.execute_web_hooks(oldrev, newrev, ref, user)
# Create satellite
self.satellite.create unless self.satellite.exists?
end
end
end

View file

@ -37,6 +37,10 @@ module Project::RepositoryTrait
end
end
def satellite
@satellite ||= Gitlabhq::Satellite.new(self)
end
def write_hook(name, content)
hook_file = File.join(path_to_repo, 'hooks', name)