Skip to content
Snippets Groups Projects
Commit 26b3050f authored by McJoppy's avatar McJoppy
Browse files

Update app/models/repository.rb

Issue #2699 - Download button not functioning. Replaces slashes with underscore in downloads filename
parent ed17a011
No related branches found
No related tags found
5 merge requests!3050Fix RESTfulness of project hook deletions by API,!3014Fix 4.1 Installation Doc wording,!2983Fixed typo in gitlab.yml.example,!2765Added methods to protect and unprotect branches in from the API,!2726Update app/models/repository.rb
Loading
Loading
@@ -151,7 +151,7 @@ class Repository
return nil unless commit
 
# Build file path
file_name = self.path_with_namespace + "-" + commit.id.to_s + ".tar.gz"
file_name = self.path_with_namespace.gsub("/","_") + "-" + commit.id.to_s + ".tar.gz"
storage_path = Rails.root.join("tmp", "repositories")
file_path = File.join(storage_path, file_name)
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment