From 91c7ffc49845b5e4f69955304cf89d0999795d36 Mon Sep 17 00:00:00 2001 From: Edward Tjörnhammar Date: Sun, 9 Nov 2014 21:24:44 +0100 Subject: Revert "Revert "initialized git repo should use the set http_proxy"" This reverts commit f8a833cfb149b35d590e0f63fe194d1f4f9db42a. This makes sure the check returns a zero code. See discussion on https://github.com/NixOS/nixpkgs/commit/5af576f --- pkgs/build-support/fetchgit/nix-prefetch-git | 1 + 1 file changed, 1 insertion(+) (limited to 'pkgs/build-support/fetchgit/nix-prefetch-git') diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index ff84f5adce97..986f8af869e2 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -83,6 +83,7 @@ init_remote(){ local url=$1 git init git remote add origin $url + [ -n "$http_proxy" ] && git config http.proxy $http_proxy || true } # Return the reference of an hash if it exists on the remote repository. -- cgit 1.4.1