]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/mediawiki/providers/extension.rb
Use sysment pygmentize for SyntaxHighlight extension
[chef.git] / cookbooks / mediawiki / providers / extension.rb
index ca0b6706e0b2691bc2672b21899d3f58fa09637b..e0eefa24509b1da49a1a9145d4e3cfad3ffbbe0c 100644 (file)
@@ -37,7 +37,9 @@ action :create do
     end
   else
     extension_repository = new_resource.repository || default_repository
     end
   else
     extension_repository = new_resource.repository || default_repository
-    extension_reference = if new_resource.tag
+    extension_reference = if new_resource.reference
+                            new_resource.reference
+                          elsif new_resource.tag
                             "refs/tags/#{new_resource.tag}"
                           else
                             "REL#{extension_version}".tr(".", "_")
                             "refs/tags/#{new_resource.tag}"
                           else
                             "REL#{extension_version}".tr(".", "_")