summaryrefslogtreecommitdiffstats
path: root/script/git-daemon
diff options
context:
space:
mode:
authorJohan Sørensen <johan@johansorensen.com>2009-05-09 18:00:52 +0200
committerJohan Sørensen <johan@johansorensen.com>2009-05-09 18:00:52 +0200
commit14132d87f0779b590dde5f04b575b43cd2d99804 (patch)
tree33863c3eeebac6bb7742c6464f7f78ecb9562813 /script/git-daemon
parentd03db0570ad7e21cc60d7f7dc79102174f4a2d64 (diff)
downloadgitorious-mainline-outdated-14132d87f0779b590dde5f04b575b43cd2d99804.zip
gitorious-mainline-outdated-14132d87f0779b590dde5f04b575b43cd2d99804.tar.gz
gitorious-mainline-outdated-14132d87f0779b590dde5f04b575b43cd2d99804.tar.bz2
Verify connections whenever we want to talk to AR from the ruby git-daemon
Diffstat (limited to 'script/git-daemon')
-rwxr-xr-xscript/git-daemon1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/git-daemon b/script/git-daemon
index b93a7bb..7e852a6 100755
--- a/script/git-daemon
+++ b/script/git-daemon
@@ -77,6 +77,7 @@ module Git
repository = nil
begin
+ ActiveRecord::Base.verify_active_connections!
repository = ::Repository.find_by_path(path)
rescue => e
log(Process.pid, "AR error: #{e.class.name} #{e.message}:\n #{e.backtrace.join("\n ")}")