Commit ad906656 authored by Emily's avatar Emily
Browse files

tests.fetchgit: pass `system` and the existing `config`

parent 368b0d36
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
{
  stdenv,
  config,
  runCommand,
  testers,
  fetchgit,
@@ -239,10 +241,13 @@
  withGitConfig =
    let
      pkgs = import ../../.. {
        config.gitConfig = {
        system = stdenv.hostPlatform.system;
        config = config // {
          gitConfig = {
            url."https://github.com".insteadOf = "https://doesntexist.forsure";
          };
        };
      };
    in
    pkgs.testers.invalidateFetcherByDrvHash pkgs.fetchgit {
      name = "fetchgit-with-config";