summaryrefslogtreecommitdiff
path: root/app/models/releases/source.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/releases/source.rb')
-rw-r--r--app/models/releases/source.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/releases/source.rb b/app/models/releases/source.rb
index dc0482002ac..254abf86e77 100644
--- a/app/models/releases/source.rb
+++ b/app/models/releases/source.rb
@@ -21,13 +21,13 @@ module Releases
Gitlab::Routing
.url_helpers
.project_archive_url(project,
- id: File.join(tag_name, archive_path),
+ id: File.join(tag_name, archive_prefix),
format: format)
end
private
- def archive_path
+ def archive_prefix
"#{project.path}-#{tag_name.tr('/', '-')}"
end
end