diff options
-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 { |