Skip to content
Snippets Groups Projects

Tweak archive filename for tag and commit archives

Closed Douwe Maan requested to merge tag-archive into master
2 files
+ 12
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -144,7 +144,14 @@ module Gitlab
return {} if commit.nil?
project_name = self.name.chomp('.git')
prefix = "#{project_name}-#{ref}-#{commit.id}"
prefix =
if tag_names.include?(ref)
"#{project_name}-#{ref}"
elsif branch_names.include?(ref)
"#{project_name}-#{ref}-#{commit.id}"
else
"#{project_name}-#{commit.id}"
end
{
'RepoPath' => path,
Loading