aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-arr2
-rw-r--r--views/branch.html8
2 files changed, 5 insertions, 5 deletions
diff --git a/git-arr b/git-arr
index 15dbf14..a6d6651 100755
--- a/git-arr
+++ b/git-arr
@@ -263,7 +263,7 @@ def tree(repo, bname, dirname = ''):
@bottle.view('branch')
@with_utils
def branch(repo, bname, offset = 0):
- return dict(repo = repo.new_in_branch(bname), offset = offset)
+ return dict(repo = repo, branch = bname, offset = offset)
@bottle.route('/static/<path:path>')
def static(path):
diff --git a/views/branch.html b/views/branch.html
index 0d3e891..0ca6834 100644
--- a/views/branch.html
+++ b/views/branch.html
@@ -3,9 +3,9 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
-% relroot = '../' * (len(repo.branch.split('/')) - 1)
+% relroot = '../' * (len(branch.split('/')) - 1)
-<title>git &raquo; {{repo.name}} &raquo; {{repo.branch}}</title>
+<title>git &raquo; {{repo.name}} &raquo; {{branch}}</title>
<link rel="stylesheet" type="text/css" href="{{relroot}}../../../../static/git-arr.css"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
@@ -13,14 +13,14 @@
<body class="branch">
<h1><a href="{{relroot}}../../../../">git</a> &raquo;
<a href="{{relroot}}../../">{{repo.name}}</a> &raquo;
- <a href="./">{{repo.branch}}</a>
+ <a href="./">{{branch}}</a>
</h1>
<p>
<a class="explicit" href="t/">Browse current source tree</a>
</p>
-% commits = repo.commits("refs/heads/" + repo.branch,
+% commits = repo.commits("refs/heads/" + branch,
% limit = repo.info.commits_per_page + 1,
% offset = repo.info.commits_per_page * offset)
% commits = list(commits)