lol

Merge pull request #256628 from alyssais/nix-prefetch-git-config

nix-prefetch-git: ignore global and user git config

authored by

Pol Dellaiera and committed by
GitHub
a7b31069 4ddbdb0d

+8 -3
+2
nixos/doc/manual/release-notes/rl-2311.section.md
··· 127 127 128 128 - `himalaya` has been updated to `0.8.0`, which drops the native TLS support (in favor of Rustls) and add OAuth 2.0 support. See the [release note](https://github.com/soywod/himalaya/releases/tag/v0.8.0) for more details. 129 129 130 + - `nix-prefetch-git` now ignores global and user git config, to improve reproducibility. 131 + 130 132 - The [services.caddy.acmeCA](#opt-services.caddy.acmeCA) option now defaults to `null` instead of `"https://acme-v02.api.letsencrypt.org/directory"`, to use all of Caddy's default ACME CAs and enable Caddy's automatic issuer fallback feature by default, as recommended by upstream. 131 133 132 134 - The default priorities of [`services.nextcloud.phpOptions`](#opt-services.nextcloud.phpOptions) have changed. This means that e.g.
+6 -3
pkgs/build-support/fetchgit/nix-prefetch-git
··· 293 293 local rev="${3:-HEAD}" 294 294 295 295 if [ -n "$fetchLFS" ]; then 296 - tmpHomePath="$(mktemp -d "${TMPDIR:-/tmp}/nix-prefetch-git-tmp-home-XXXXXXXXXX")" 297 - exit_handlers+=(remove_tmpHomePath) 298 - HOME="$tmpHomePath" 299 296 clean_git lfs install 300 297 fi 301 298 ··· 416 413 if test -z "$branchName"; then 417 414 branchName=fetchgit 418 415 fi 416 + 417 + tmpHomePath="$(mktemp -d "${TMPDIR:-/tmp}/nix-prefetch-git-tmp-home-XXXXXXXXXX")" 418 + exit_handlers+=(remove_tmpHomePath) 419 + HOME="$tmpHomePath" 420 + unset XDG_CONFIG_HOME 421 + export GIT_CONFIG_NOSYSTEM=1 419 422 420 423 if test -n "$builder"; then 421 424 test -n "$out" -a -n "$url" -a -n "$rev" || usage