+2
-1
pkgs/build-support/fetchgit/default.nix
+2
-1
pkgs/build-support/fetchgit/default.nix
+14
-10
pkgs/build-support/fetchgit/tests.nix
+14
-10
pkgs/build-support/fetchgit/tests.nix
······
+34
pkgs/top-level/config.nix
+34
pkgs/top-level/config.nix
···+The default [git configuration](https://git-scm.com/docs/git-config#_variables) for all [`pkgs.fetchgit`](#fetchgit) calls.+Changing this will not cause any rebuilds because `pkgs.fetchgit` produces a [fixed-output derivation](https://nix.dev/manual/nix/stable/glossary.html?highlight=fixed-output%20derivation#gloss-fixed-output-derivation).+To set the configuration file directly, use the [`gitConfigFile`](#opt-gitConfigFile) option instead.+To set the configuration file for individual calls, use `fetchurl { gitConfigFile = "..."; }`.+A path to a [git configuration](https://git-scm.com/docs/git-config#_variables) file, to be used for all [`pkgs.fetchgit`](#fetchgit) calls.+This overrides the [`gitConfig`](#opt-gitConfig) option, see its documentation for more details.