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-06 20:09:18 +0100
committerEdward Tjörnhammar <ed@cflags.cc>2014-11-07 11:50:30 +0100
commit5af576ff7f4e657c0053f66d6fba03bfd1e97669 (patch)
treee1d4313e7b1cb1c3052244411ffef5335ea40d89 /pkgs/build-support/fetchgit/nix-prefetch-git
parent576092eec4d29c0ca6bc9f53d46856f22d095794 (diff)
downloadnixlib-5af576ff7f4e657c0053f66d6fba03bfd1e97669.tar
nixlib-5af576ff7f4e657c0053f66d6fba03bfd1e97669.tar.gz
nixlib-5af576ff7f4e657c0053f66d6fba03bfd1e97669.tar.bz2
nixlib-5af576ff7f4e657c0053f66d6fba03bfd1e97669.tar.lz
nixlib-5af576ff7f4e657c0053f66d6fba03bfd1e97669.tar.xz
nixlib-5af576ff7f4e657c0053f66d6fba03bfd1e97669.tar.zst
nixlib-5af576ff7f4e657c0053f66d6fba03bfd1e97669.zip
initialized git repo should use the set http_proxy
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..1d172598722b 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
 }
 
 # Return the reference of an hash if it exists on the remote repository.