From: Tom Hughes Date: Tue, 3 Feb 2015 17:53:08 +0000 (+0000) Subject: Chef can handle annotated tags in git now X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/8f958d8ce45adeb2f5fcb2b108db8e14179b0e06?ds=sidebyside Chef can handle annotated tags in git now --- diff --git a/cookbooks/chef/libraries/git.rb b/cookbooks/chef/libraries/git.rb deleted file mode 100644 index 775c2da1a..000000000 --- a/cookbooks/chef/libraries/git.rb +++ /dev/null @@ -1,16 +0,0 @@ -class Chef - class Provider - class Git - def remote_resolve_reference - Chef::Log.debug("#{@new_resource} resolving remote reference") - command = git('ls-remote', @new_resource.repository, @new_resource.revision, "#{@new_resource.revision}^{}") - @resolved_reference = shell_out!(command, run_options).stdout.split("\n").last - if @resolved_reference =~ /^([0-9a-f]{40})\s+(\S+)/ - Regexp.last_match[1] - else - nil - end - end - end - end -end