hydra/src
Josef Kemetmüller b6ea85a601 scmdiff: Hardcode --git-dir
The newest version of git refuses to work on repositories not owned by
the current user. This leads to issues with the /api/scmdiff endpoint:

May 27 11:16:05 myhydra hydra-server[923698]: fatal: unsafe repository ('/var/lib/hydra/scm/git/57ea036ec7ecd85c8dd085e02ecc6f12dd5c079a6203d16aea49f586cadfb2be' is owned by someone else)
May 27 11:16:05 myhydra hydra-server[923698]: To add an exception for this directory, call:
May 27 11:16:05 myhydra hydra-server[923698]:         git config --global --add safe.directory /var/lib/hydra/scm/git/57ea036ec7ecd85c8dd085e02ecc6f12dd5c079a6203d16aea49f586cadfb2be
May 27 11:16:05 myhydra hydra-server[923701]: warning: Not a git repository. Use --no-index to compare two paths outside a working tree
May 27 11:16:05 myhydra hydra-server[923701]: usage: git diff --no-index [<options>] <path> <path>

I used the same solution that was used in NixOS/nix#6440.

Fixes #1214
2022-05-27 12:12:44 +02:00
..
hydra-eval-jobs fix(hydra-eval-jobs): fix typo 2022-04-29 13:06:16 -04:00
hydra-evaluator Fix deprecation warnings with libpqxx usage 2021-07-05 19:45:25 +01:00
hydra-queue-runner Merge pull request #1173 from DeterminateSystems/queue-runner-exporter 2022-04-07 12:27:33 -04:00
lib scmdiff: Hardcode --git-dir 2022-05-27 12:12:44 +02:00
libhydra fix build against nix 2.7.0 2022-03-29 15:38:24 -04:00
root Merge pull request #1103 from DeterminateSystems/runcommand/dynamic 2022-04-19 10:09:47 -04:00
script Merge pull request #1103 from DeterminateSystems/runcommand/dynamic 2022-04-19 10:09:47 -04:00
sql sql: add enable_dynamic_run_command to the Project as well 2022-02-01 10:58:54 -05:00
ttf Add font for the captcha 2013-03-04 12:16:13 +01:00
Makefile.am Revert "hydra-eval-jobs -> nix eval-hydra-jobs" 2020-02-19 20:36:52 +01:00
Makefile.PL perlcritic: use strict, use warnings 2021-09-06 22:13:33 -04:00