Avoid git fetch when refreshing local status

This commit is contained in:
Nick O'Leary
2018-02-08 23:30:07 +00:00
parent 06a6a4408f
commit aa1cf0b228
4 changed files with 15 additions and 8 deletions

View File

@@ -149,7 +149,9 @@ module.exports = {
// Get project status - files, commit counts, branch info
app.get("/:id/status", needsPermission("projects.read"), function(req,res) {
runtime.storage.projects.getStatus(req.user, req.params.id).then(function(data) {
var includeRemote = req.query.remote;
runtime.storage.projects.getStatus(req.user, req.params.id, includeRemote).then(function(data) {
if (data) {
res.json(data);
} else {