summaryrefslogtreecommitdiff
path: root/lib/chef/provider/git.rb
diff options
context:
space:
mode:
authorJack Foy <jfoy@whitepages.com>2013-06-06 15:06:15 -0700
committerJack Foy <jfoy@whitepages.com>2013-07-19 14:06:22 -0700
commit3bdbd6bf47d4f0c407c625a987c3b9336624f8d7 (patch)
treeaafb56d4e620464be0fab4ea385679956b120069 /lib/chef/provider/git.rb
parentb1112b5e43e0cce8245772cedb0d593192971bb1 (diff)
downloadchef-3bdbd6bf47d4f0c407c625a987c3b9336624f8d7.tar.gz
Use timeout attribute in git and subversion providers
Diffstat (limited to 'lib/chef/provider/git.rb')
-rw-r--r--lib/chef/provider/git.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/provider/git.rb b/lib/chef/provider/git.rb
index 7cda1a873a..b22004eda0 100644
--- a/lib/chef/provider/git.rb
+++ b/lib/chef/provider/git.rb
@@ -273,6 +273,7 @@ class Chef
run_opts[:group] = @new_resource.group if @new_resource.group
run_opts[:environment] = {"GIT_SSH" => @new_resource.ssh_wrapper} if @new_resource.ssh_wrapper
run_opts[:log_tag] = @new_resource.to_s
+ run_opts[:timeout] = @new_resource.timeout if @new_resource.timeout
run_opts
end