diff options
author | Johan Sørensen <johan@johansorensen.com> | 2009-05-09 12:32:22 +0200 |
---|---|---|
committer | Johan Sørensen <johan@johansorensen.com> | 2009-05-09 12:32:22 +0200 |
commit | 8196aab48a2509187a987ba1e7b384b924c1c71a (patch) | |
tree | 397ffb9b0da679118ed81ed92caba78829eb2ef2 | |
parent | f71fb6b96858cd1a9a12f0228fb9e3f5c251c12c (diff) | |
download | gitorious-mainline-outdated-8196aab48a2509187a987ba1e7b384b924c1c71a.zip gitorious-mainline-outdated-8196aab48a2509187a987ba1e7b384b924c1c71a.tar.gz gitorious-mainline-outdated-8196aab48a2509187a987ba1e7b384b924c1c71a.tar.bz2 |
Make the tree archiver deal gracefully with the hashed_path subdirs by
replacing the slashes
-rw-r--r-- | app/controllers/trees_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/trees_controller.rb b/app/controllers/trees_controller.rb index 384e0f5..fda988a 100644 --- a/app/controllers/trees_controller.rb +++ b/app/controllers/trees_controller.rb @@ -62,7 +62,7 @@ class TreesController < ApplicationController end user_path = "#{@repository.project_or_owner.to_param}-#{@repository.to_param}-#{@ref}.#{ext}" - disk_path = "#{@repository.hashed_path}-#{@commit.id}.#{ext}" + disk_path = "#{@repository.hashed_path.sub(/\//,'-')}-#{@commit.id}.#{ext}" if File.exist?(File.join(GitoriousConfig["archive_cache_dir"], disk_path)) respond_to do |format| format.html { |