Skip to content

Commit

Permalink
Merge pull request #2726 from McJoppy/download-archive-bug
Browse files Browse the repository at this point in the history
Update app/models/repository.rb
  • Loading branch information
dzaporozhets committed Jan 24, 2013
2 parents feb036b + 26b3050 commit c78ede3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/repository.rb
Expand Up @@ -151,7 +151,7 @@ def archive_repo(ref)
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)

Expand Down

0 comments on commit c78ede3

Please sign in to comment.