diff options
author | Rémy Coutable <remy@rymai.me> | 2017-03-16 21:22:14 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-03-17 06:33:03 +0300 |
commit | d5a116258c33ea7633cb4103923ae42c6baa39bf (patch) | |
tree | 3bd579a0a3f18a8f76969db456023ad1ceb3c999 /lib | |
parent | f7769bbdc842c59d2fc241bf2c1532ad8a76b003 (diff) |
Merge branch '29565-name-of-the-uncompressed-folder-of-a-tag-archive-changed' into 'master'
Fix archive prefix bug for refs containing dots
Closes #29565
See merge request !10007
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/git/repository.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index 228ef7bb7a9..2187dd70ff4 100644 --- a/lib/gitlab/git/repository.rb +++ b/lib/gitlab/git/repository.rb @@ -201,7 +201,7 @@ module Gitlab def archive_prefix(ref, sha) project_name = self.name.chomp('.git') - "#{project_name}-#{ref.parameterize}-#{sha}" + "#{project_name}-#{ref.tr('/', '-')}-#{sha}" end def archive_metadata(ref, storage_path, format = "tar.gz") |