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