summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-03-16 18:22:14 +0000
committerRémy Coutable <remy@rymai.me>2017-03-16 18:22:14 +0000
commitac8beca42399fd36b471c63ea1dfe8ad0e48ed8f (patch)
treea2871c27b1113e2678b394a38c5ca1a7817f843c /spec/lib
parent2668cc2029d0d337fc9f999dde7416d14d6cbec2 (diff)
parent45976540799e34fa07e7830ed52a7d6616cde3d7 (diff)
downloadgitlab-ce-ac8beca42399fd36b471c63ea1dfe8ad0e48ed8f.tar.gz
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 'spec/lib')
-rw-r--r--spec/lib/gitlab/git/repository_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/gitlab/git/repository_spec.rb b/spec/lib/gitlab/git/repository_spec.rb
index 9c3a4571ce4..9ed43da1116 100644
--- a/spec/lib/gitlab/git/repository_spec.rb
+++ b/spec/lib/gitlab/git/repository_spec.rb
@@ -90,6 +90,12 @@ describe Gitlab::Git::Repository, seed_helper: true do
expect(prefix).to eq("#{project_name}-test-branch-SHA")
end
+
+ it 'returns correct string for a ref containing dots' do
+ prefix = repository.archive_prefix('test.branch', 'SHA')
+
+ expect(prefix).to eq("#{project_name}-test.branch-SHA")
+ end
end
describe '#archive' do