about summary refs log tree commit diff
path: root/pkgs/build-support/fetchgit/nix-prefetch-git
diff options
context:
space:
mode:
authorEdward Tjörnhammar <ed@cflags.cc>2014-11-09 21:24:44 +0100
committerEdward Tjörnhammar <ed@cflags.cc>2014-11-09 21:27:26 +0100
commit91c7ffc49845b5e4f69955304cf89d0999795d36 (patch)
tree10b41af5e22bf28d65402e3efa80e18ff8a5b46b /pkgs/build-support/fetchgit/nix-prefetch-git
parentf8a833cfb149b35d590e0f63fe194d1f4f9db42a (diff)
downloadnixlib-91c7ffc49845b5e4f69955304cf89d0999795d36.tar
nixlib-91c7ffc49845b5e4f69955304cf89d0999795d36.tar.gz
nixlib-91c7ffc49845b5e4f69955304cf89d0999795d36.tar.bz2
nixlib-91c7ffc49845b5e4f69955304cf89d0999795d36.tar.lz
nixlib-91c7ffc49845b5e4f69955304cf89d0999795d36.tar.xz
nixlib-91c7ffc49845b5e4f69955304cf89d0999795d36.tar.zst
nixlib-91c7ffc49845b5e4f69955304cf89d0999795d36.zip
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
Diffstat (limited to 'pkgs/build-support/fetchgit/nix-prefetch-git')
-rwxr-xr-xpkgs/build-support/fetchgit/nix-prefetch-git1
1 files changed, 1 insertions, 0 deletions
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.