#!/bin/sh export GERRIT_GIT_DIR=/var/gerrit/git export GERRIT_CONFIG=/var/gerrit/etc/gerrit.config export GERRIT_SECURE_CONFIG=/var/gerrit/etc/secure.config export PROJECTS_YAML=/var/gerrit/etc/projects.yaml export PROJECTS_INI=/var/gerrit/etc/projects.ini # Use timeout to kill any process running longer than 10 minutes. timeout -k 2m 10m /usr/local/bin/update-bug change-merged "$@"