app/controllers/webgit/git_controller.rb in webgit-0.0.1 vs app/controllers/webgit/git_controller.rb in webgit-0.0.2
- old
+ new
@@ -50,10 +50,10 @@
end
end if tree.respond_to?(:each)
end
def set_repo_branch
- if session[:current_repo] && (path = AppConfig::REPOS[session[:current_repo]]['path'])
+ if session[:current_repo] && (path = Webgit::AppConfig::REPOS[session[:current_repo]]['path'])
@repo = Rugged::Repository.new(path)
@branch = @repo.rev_parse(params[:branch])
@branches = Rugged::Branch.each_name(@repo).select{|item| !item.include?('/') && item != params[:branch]}
else
redirect_to webgit_path