git ssb

30+

cel / git-ssb-web



Commit db21c527b861c7c35e5a6ad60990403a8147b01b

Fix repo not found error

Charles Lehner committed on 3/26/2016, 6:42:19 PM
Parent: a14b9f6dcce1a6d5415cf9aaa623c4d24f171931

Files changed

index.jschanged
index.jsView
@@ -476,23 +476,23 @@
476476 cb(null, serveRepoPage(req, Repo(repo), path))
477477 })
478478 case 'git-update':
479479 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))
481481 cb(null, serveRepoUpdate(req, Repo(repo), id, msg, path))
482482 })
483483 case 'issue':
484484 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))
486486 issues.get({key: id, value: msg}, function (err, issue) {
487487 if (err) return cb(null, serveError(err))
488488 cb(null, serveRepoIssue(req, Repo(repo), issue, path))
489489 })
490490 })
491491 default:
492492 if (ref.isMsgId(c.repo))
493493 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))
495495 cb(null, serveRepoSomething(req, Repo(repo), id, msg, path))
496496 })
497497 else
498498 return cb(null, serveGenericMessage(req, id, msg, path))

Built with git-ssb-web