Commit 35ad4575858b22e34b6a4426e6d933d7b0a0c9a9

Print less from *-receive hooks

Commit diff

data/hooks/post-receive

 
1818git = Grit::Git.new(gitdir)
1919
2020while line = gets
21 puts "@@> #{line.inspect}"
21 #puts "@@> #{line.inspect}"
2222 # 3b480c5c30962c9f5b82a9c61a75992dc605de21 ee27ee3a022802c0569f9cdef6e9ad29aea096a8 refs/heads/master\n
2323 oldrev, newrev, revname = line.split(" ")
2424 current_rev = newrev
130130 project.create_event(action_id, repository, user, ref, hash[:message])
131131end
132132
133puts "=> Thanks! http://#{GitoriousConfig['gitorious_host']}/events"
133puts "[OK]"
134134
toggle raw diff

data/hooks/pre-receive

data/hooks/rails_env.rb

 
22current_dir = File.expand_path(File.dirname(__FILE__))
33app_root = File.join(current_dir, "../../")
44
5print "=> Wait... "
5print "=> Syncing Gitorious... "
66$stdout.flush
77ENV["RAILS_ENV"] ||= "production"
88require File.join(app_root,"/config/environment")
99
10puts "[OK]"
toggle raw diff