X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a68415b8f2bf106b6ea5948b0605c897b516ef4f..d054b1902c58aeda444f9c574e46c7638a65544e:/cookbooks/mediawiki/providers/extension.rb diff --git a/cookbooks/mediawiki/providers/extension.rb b/cookbooks/mediawiki/providers/extension.rb index ca0b6706e..e0eefa245 100644 --- a/cookbooks/mediawiki/providers/extension.rb +++ b/cookbooks/mediawiki/providers/extension.rb @@ -37,7 +37,9 @@ action :create do 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(".", "_")