Commit 35ad4575858b22e34b6a4426e6d933d7b0a0c9a9
- Date: Mon Apr 28 19:11:49 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: 35ad4575858b22e34b6a4426e6d933d7b0a0c9a9
- Tree SHA1: 9114d29bfed6eaa65da43d7e46713cdce5cd52f0
Print less from *-receive hooks
Commit diff
| |   |
| 18 | 18 | git = Grit::Git.new(gitdir) |
| 19 | 19 | |
| 20 | 20 | while line = gets |
| 21 | | puts "@@> #{line.inspect}" |
| 21 | #puts "@@> #{line.inspect}" |
| 22 | 22 | # 3b480c5c30962c9f5b82a9c61a75992dc605de21 ee27ee3a022802c0569f9cdef6e9ad29aea096a8 refs/heads/master\n |
| 23 | 23 | oldrev, newrev, revname = line.split(" ") |
| 24 | 24 | current_rev = newrev |
| … | … | |
| 130 | 130 | project.create_event(action_id, repository, user, ref, hash[:message]) |
| 131 | 131 | end |
| 132 | 132 | |
| 133 | | puts "=> Thanks! http://#{GitoriousConfig['gitorious_host']}/events" |
| 133 | puts "[OK]" |
| 134 | 134 | |
| toggle raw diff |
--- a/data/hooks/post-receive
+++ b/data/hooks/post-receive
@@ -18,7 +18,7 @@ end
git = Grit::Git.new(gitdir)
while line = gets
- puts "@@> #{line.inspect}"
+ #puts "@@> #{line.inspect}"
# 3b480c5c30962c9f5b82a9c61a75992dc605de21 ee27ee3a022802c0569f9cdef6e9ad29aea096a8 refs/heads/master\n
oldrev, newrev, revname = line.split(" ")
current_rev = newrev
@@ -130,5 +130,5 @@ while line = gets
project.create_event(action_id, repository, user, ref, hash[:message])
end
-puts "=> Thanks! http://#{GitoriousConfig['gitorious_host']}/events"
+puts "[OK]"
|
| |   |
| 2 | 2 | current_dir = File.expand_path(File.dirname(__FILE__)) |
| 3 | 3 | app_root = File.join(current_dir, "../../") |
| 4 | 4 | |
| 5 | | print "=> Wait... " |
| 5 | print "=> Syncing Gitorious... " |
| 6 | 6 | $stdout.flush |
| 7 | 7 | ENV["RAILS_ENV"] ||= "production" |
| 8 | 8 | require File.join(app_root,"/config/environment") |
| 9 | 9 | |
| 10 | | puts "[OK]" |
| toggle raw diff |
--- a/data/hooks/rails_env.rb
+++ b/data/hooks/rails_env.rb
@@ -2,9 +2,8 @@
current_dir = File.expand_path(File.dirname(__FILE__))
app_root = File.join(current_dir, "../../")
-print "=> Wait... "
+print "=> Syncing Gitorious... "
$stdout.flush
ENV["RAILS_ENV"] ||= "production"
require File.join(app_root,"/config/environment")
-puts "[OK]" |