summaryrefslogtreecommitdiffstats
path: root/app/controllers/trees_controller.rb
diff options
context:
space:
mode:
authorMarius Mathiesen <marius.mathiesen@gmail.com>2009-05-12 12:54:32 +0200
committerMarius Mathiesen <marius.mathiesen@gmail.com>2009-05-12 13:02:49 +0200
commit041cde1e972ab164208619a3e6159c38f0c4b952 (patch)
tree541e934b1ed99b8a9168ab079891d7cc1ccdc660 /app/controllers/trees_controller.rb
parentf4cb25d2f4918baadd11a9167899e20a82a23434 (diff)
downloadgitorious-mainline-outdated-041cde1e972ab164208619a3e6159c38f0c4b952.zip
gitorious-mainline-outdated-041cde1e972ab164208619a3e6159c38f0c4b952.tar.gz
gitorious-mainline-outdated-041cde1e972ab164208619a3e6159c38f0c4b952.tar.bz2
Handle requests for invalid refs in TreesController#archive by redirecting to the default tree (HEAD)
Diffstat (limited to 'app/controllers/trees_controller.rb')
-rw-r--r--app/controllers/trees_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/trees_controller.rb b/app/controllers/trees_controller.rb
index a876408..d13b067 100644
--- a/app/controllers/trees_controller.rb
+++ b/app/controllers/trees_controller.rb
@@ -114,6 +114,6 @@ class TreesController < ApplicationController
def handle_missing_tree_sha
flash[:error] = "No such tree SHA1 was found"
redirect_to project_repository_tree_path(@project, @repository,
- branch_with_tree("HEAD", @path))
+ branch_with_tree("HEAD", @path || []))
end
end