mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-12-21 15:59:48 +01:00
Let background computations abort for browse command
This commit is contained in:
@@ -133,7 +133,7 @@ public class GitBrowseCommand extends AbstractGitCommand
|
||||
request.updateCache(browserResult);
|
||||
logger.info("updated browser result for repository {}", repository.getNamespaceAndName());
|
||||
}
|
||||
});
|
||||
}, () -> {});
|
||||
return browserResult;
|
||||
} else {
|
||||
logger.warn("could not find head of repository {}, empty?", repository.getNamespaceAndName());
|
||||
@@ -248,6 +248,11 @@ public class GitBrowseCommand extends AbstractGitCommand
|
||||
logger.warn("could not find latest commit for {} on {}", path,
|
||||
revId);
|
||||
}
|
||||
}, () -> {
|
||||
file.setPartialResult(false);
|
||||
file.setComputationAborted(true);
|
||||
request.updateCache(browserResult);
|
||||
logger.info("updated browser result for repository {}", repository.getNamespaceAndName());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user