summaryrefslogtreecommitdiff
path: root/lib/chef/resource/git.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-03-05 14:04:59 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-03-05 14:04:59 -0800
commit50f820590d0e5b864fd9ace7fc940609ef1c6fcd (patch)
tree6b59e9c192471e81040f9a9318c827d69e8c86b5 /lib/chef/resource/git.rb
parent7d9696554ec2a9accb66371f23d86a9601ec45e9 (diff)
downloadchef-50f820590d0e5b864fd9ace7fc940609ef1c6fcd.tar.gz
make deploy provider support nil
necessary edits to protect deploy provider and git provider when the resource parameters are reset to nil. also clean up the use of @new_resource in the deploy provider.
Diffstat (limited to 'lib/chef/resource/git.rb')
-rw-r--r--lib/chef/resource/git.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/git.rb b/lib/chef/resource/git.rb
index 7156873315..306efe633d 100644
--- a/lib/chef/resource/git.rb
+++ b/lib/chef/resource/git.rb
@@ -27,7 +27,7 @@ class Chef
def initialize(name, run_context=nil)
super
@resource_name = :git
- @additional_remotes = Hash[]
+ @additional_remotes = {}
end
def additional_remotes(arg=nil)