Fix with_ga. Refs #2136
This commit is contained in:
parent
f7045179c5
commit
1277e81336
|
@ -1,8 +1,10 @@
|
||||||
APP_CONFIG = YAML.load_file("#{Rails.root}/config/application.yml")[Rails.env]
|
APP_CONFIG = YAML.load_file("#{Rails.root}/config/application.yml")[Rails.env]
|
||||||
|
|
||||||
def with_ga(&block)
|
class Object
|
||||||
Gitolito::GitoliteAdmin.thread_safe(File.join(APP_CONFIG['root_path'], 'gitolite-admin'), {:wait_lock => true, :seconds => 5}) do |ga|
|
def with_ga(&block)
|
||||||
block.call(ga)
|
Gitolito::GitoliteAdmin.thread_safe(File.join(APP_CONFIG['root_path'], 'gitolite-admin'), {:wait_lock => true, :seconds => 5}) do |ga|
|
||||||
|
block.call(ga)
|
||||||
|
end
|
||||||
|
# ga = Gitolito::GitoliteAdmin.new File.join(APP_CONFIG['root_path'], 'gitolite-admin'); block.call(ga)
|
||||||
end
|
end
|
||||||
# ga = Gitolito::GitoliteAdmin.new File.join(APP_CONFIG['root_path'], 'gitolite-admin'); block.call(ga)
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue