Commit db21c527b861c7c35e5a6ad60990403a8147b01b
Fix repo not found error
Charles Lehner committed on 3/26/2016, 6:42:19 PMParent: a14b9f6dcce1a6d5415cf9aaa623c4d24f171931
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -476,23 +476,23 @@ | ||
476 | 476 | cb(null, serveRepoPage(req, Repo(repo), path)) |
477 | 477 | }) |
478 | 478 | case 'git-update': |
479 | 479 | return getRepo(c.repo, function (err, repo) { |
480 | - if (err) return cb(null, serveRepoNotFound(repo.id, err)) | |
480 | + if (err) return cb(null, serveRepoNotFound(c.repo, err)) | |
481 | 481 | cb(null, serveRepoUpdate(req, Repo(repo), id, msg, path)) |
482 | 482 | }) |
483 | 483 | case 'issue': |
484 | 484 | return getRepo(c.project, function (err, repo) { |
485 | - if (err) return cb(null, serveRepoNotFound(repo.id, err)) | |
485 | + if (err) return cb(null, serveRepoNotFound(c.project, err)) | |
486 | 486 | issues.get({key: id, value: msg}, function (err, issue) { |
487 | 487 | if (err) return cb(null, serveError(err)) |
488 | 488 | cb(null, serveRepoIssue(req, Repo(repo), issue, path)) |
489 | 489 | }) |
490 | 490 | }) |
491 | 491 | default: |
492 | 492 | if (ref.isMsgId(c.repo)) |
493 | 493 | return getRepo(c.repo, function (err, repo) { |
494 | - if (err) return cb(null, serveRepoNotFound(repo.id, err)) | |
494 | + if (err) return cb(null, serveRepoNotFound(c.repo, err)) | |
495 | 495 | cb(null, serveRepoSomething(req, Repo(repo), id, msg, path)) |
496 | 496 | }) |
497 | 497 | else |
498 | 498 | return cb(null, serveGenericMessage(req, id, msg, path)) |
Built with git-ssb-web