Commit 4dc39748d2ffa17c933c5d5262e9bdf1c50c13e2
Fix missing req
Charles Lehner committed on 4/15/2016, 10:09:55 PMParent: d3c7e2d7b6d9f12cc53de2d7ee56a9d2e7fe9949
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -1313,9 +1313,9 @@ | ||
1313 | 1313 | type == 'Branch' && renderRepoLatest(req, repo, rev), |
1314 | 1314 | pull.once('</section><section>'), |
1315 | 1315 | renderRepoTree(req, repo, rev, path), |
1316 | 1316 | pull.once('</section>'), |
1317 | - renderRepoReadme(repo, rev, path) | |
1317 | + renderRepoReadme(req, repo, rev, path) | |
1318 | 1318 | ])) |
1319 | 1319 | } |
1320 | 1320 | |
1321 | 1321 | /* Search */ |
@@ -1576,9 +1576,9 @@ | ||
1576 | 1576 | } |
1577 | 1577 | |
1578 | 1578 | /* Repo readme */ |
1579 | 1579 | |
1580 | - function renderRepoReadme(repo, branch, path) { | |
1580 | + function renderRepoReadme(req, repo, branch, path) { | |
1581 | 1581 | return readNext(function (cb) { |
1582 | 1582 | pull( |
1583 | 1583 | repo.readDir(branch, path), |
1584 | 1584 | pull.filter(function (file) { |
Built with git-ssb-web