From f9b7c2a14c939d0bb7d1ac2fcca3116e38e37f74 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sun, 22 Jun 2025 22:57:08 +0200 Subject: Add support for pushing changes to a translation review Finally got around to fixing the pre-receive hook to include quarantined objects so the hook actually can run git commands on the not-yet-accepted commits. As part of that, had to make sure git hook and eyeballs server had the same path to the repo or confusion will appear. --- docker/integration_test/web/setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docker/integration_test/web/setup.sh') diff --git a/docker/integration_test/web/setup.sh b/docker/integration_test/web/setup.sh index bd6c805..d8093b1 100755 --- a/docker/integration_test/web/setup.sh +++ b/docker/integration_test/web/setup.sh @@ -7,9 +7,9 @@ echo "session_max_age_days = 7" >> Rocket.toml echo "ldap_url = \"$LDAP_URL\"" >> Rocket.toml echo "ldap_users = \"ou=users,dc=example,dc=org\"" >> Rocket.toml echo "ldap_filter = \"(objectClass=posixAccount)\"" >> Rocket.toml -echo "git_server_root = \"/git/repos\"" >> Rocket.toml +echo "git_server_root = \"/srv/git\"" >> Rocket.toml echo "authorized_keys = \"/git/auth/authorized_keys\"" >> Rocket.toml -echo "git_hook = \"/git/repos/eyeballs-githook\"" >> Rocket.toml +echo "git_hook = \"/srv/git/eyeballs-githook\"" >> Rocket.toml echo "[default.databases.eyeballs]" >> Rocket.toml echo "url = \"$DB_URL\"" >> Rocket.toml @@ -20,6 +20,6 @@ echo "Host remote_git" > /app/.ssh/config echo " StrictHostKeyChecking no" >> /app/.ssh/config # Hardlinks cannot cross devices, so copy to the /git/repos mount. -cp /app/eyeballs-githook /git/repos/eyeballs-githook +cp /app/eyeballs-githook /srv/git/eyeballs-githook exec ./eyeballs -- cgit v1.2.3-70-g09d2