We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b899778 commit 7103f37Copy full SHA for 7103f37
cgi-bin/webhook.cgi
@@ -187,7 +187,7 @@ class PushHook
187
def execute(*cmd, user:)
188
cmd = ['/home/git/git.ruby-lang.org/bin/sudo-u.sh', user, *cmd]
189
logger.info("+ #{cmd.shelljoin}")
190
- system("#{cmd.shelljoin} >> #{Webhook::LOG_PATH} 2>&1", exception: true)
+ system("timeout 3 #{cmd.shelljoin} >> #{Webhook::LOG_PATH} 2>&1", exception: true)
191
logger.info("done")
192
end
193
0 commit comments