diff options
author | Mark Fletcher <mark@gitlab.com> | 2017-03-16 19:48:09 +0530 |
---|---|---|
committer | Mark Fletcher <mark@gitlab.com> | 2017-03-16 21:04:58 +0530 |
commit | 45976540799e34fa07e7830ed52a7d6616cde3d7 (patch) | |
tree | ee50c3a8d46b4f4eb29a95d909de564b10d6dea6 /lib | |
parent | 68e64a5b44b7a0f540214ee8a3ca36ffcdb4fc6c (diff) | |
download | gitlab-ce-45976540799e34fa07e7830ed52a7d6616cde3d7.tar.gz |
Fix archive prefix bug for refs containing dots
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") |