@cryptotaxi247 / infra-1 / commits / 1da90929

hydra-mirror: configure the git repo to fetch all branches

Pierre Bourdon committed Feb 22, 2024 at 02:03 UTC 1da9092928d4f2001b4846da148b9ffd5b55ea52
1 file changed +1
modules/hydra-mirror.nix
+1
@@ -19,6 +19,7 @@ let
19 git clone --bare https://github.com/NixOS/nixpkgs.git $dir
20 fi
21 GIT_DIR=$dir git config credential.helper 'store --file=${config.age.secrets.hydra-mirror-git-credentials.path}'
22 + GIT_DIR=$dir git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
23
24 # FIXME: use IAM role.
25 export AWS_ACCESS_KEY_ID=$(sed 's/aws_access_key_id=\(.*\)/\1/ ; t; d' ${config.age.secrets.hydra-mirror-aws-credentials.path})