{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef/issues/2437","labels_url":"https://api.github.com/repos/chef/chef/issues/2437/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/2437/comments","events_url":"https://api.github.com/repos/chef/chef/issues/2437/events","html_url":"https://github.com/chef/chef/issues/2437","id":49152497,"number":2437,"title":"[Git resource] Provide a way to specify git config environment parameters","user":{"login":"kiiranh","id":4454094,"avatar_url":"https://avatars.githubusercontent.com/u/4454094?v=3","gravatar_id":"","url":"https://api.github.com/users/kiiranh","html_url":"https://github.com/kiiranh","followers_url":"https://api.github.com/users/kiiranh/followers","following_url":"https://api.github.com/users/kiiranh/following{/other_user}","gists_url":"https://api.github.com/users/kiiranh/gists{/gist_id}","starred_url":"https://api.github.com/users/kiiranh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiiranh/subscriptions","organizations_url":"https://api.github.com/users/kiiranh/orgs","repos_url":"https://api.github.com/users/kiiranh/repos","events_url":"https://api.github.com/users/kiiranh/events{/privacy}","received_events_url":"https://api.github.com/users/kiiranh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-11-17T22:12:15Z","updated_at":"2015-01-29T04:57:26Z","closed_at":null,"body":"When running behind a proxy, one needs to set the http(s)_proxy and other git options in .gitconfig for git to work. One other way to do this is set the http(s)_proxy and other GIT attributes as environment variables in knife.rb. But if these variables are to be set for a specific recipe, currently there seems to be no way to do it.\r\nCould we add an \"environment\" resource attribute to the git resource where one can specify environment variables for that specific git run? The bash resource has such an environment attribute."},"comment":{"url":"https://api.github.com/repos/chef/chef/issues/comments/71969368","html_url":"https://github.com/chef/chef/issues/2437#issuecomment-71969368","issue_url":"https://api.github.com/repos/chef/chef/issues/2437","id":71969368,"user":{"login":"gimler","id":200904,"avatar_url":"https://avatars.githubusercontent.com/u/200904?v=3","gravatar_id":"","url":"https://api.github.com/users/gimler","html_url":"https://github.com/gimler","followers_url":"https://api.github.com/users/gimler/followers","following_url":"https://api.github.com/users/gimler/following{/other_user}","gists_url":"https://api.github.com/users/gimler/gists{/gist_id}","starred_url":"https://api.github.com/users/gimler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gimler/subscriptions","organizations_url":"https://api.github.com/users/gimler/orgs","repos_url":"https://api.github.com/users/gimler/repos","events_url":"https://api.github.com/users/gimler/events{/privacy}","received_events_url":"https://api.github.com/users/gimler/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T04:57:26Z","updated_at":"2015-01-29T04:57:26Z","body":"i think the latest chef version has this feature https://github.com/chef/chef/blob/master/lib/chef/provider/git.rb#L314 not shure."}}