Chef can handle annotated tags in git now
authorTom Hughes <tom@compton.nu>
Tue, 3 Feb 2015 17:53:08 +0000 (17:53 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 3 Feb 2015 17:53:08 +0000 (17:53 +0000)
cookbooks/chef/libraries/git.rb [deleted file]

diff --git a/cookbooks/chef/libraries/git.rb b/cookbooks/chef/libraries/git.rb
deleted file mode 100644 (file)
index 775c2da..0000000
+++ /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