diff --git a/lib/chef/knife/cookbook_github_install.rb b/lib/chef/knife/cookbook_github_install.rb index 7b450a6..f88d039 100644 --- a/lib/chef/knife/cookbook_github_install.rb +++ b/lib/chef/knife/cookbook_github_install.rb @@ -145,7 +145,7 @@ def sha data = nil raise "Unable to find SHA checksum" unless ['heads','tags'].any? do |ref_type| begin - data = noauth_rest.get_rest("https://api.github.com/repos/#{@github_user}/#{@github_repo}/git/refs/#{ref_type}/#{github_branch}") + data = noauth_rest.get("https://api.github.com/repos/#{@github_user}/#{@github_repo}/git/refs/#{ref_type}/#{github_branch}") ui.info("Found #{github_branch} amoung #{ref_type}.") true rescue