mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Avoid git fetch when refreshing local status
This commit is contained in:
@@ -410,11 +410,11 @@ Project.prototype.revertFile = function (filePath) {
|
||||
|
||||
|
||||
|
||||
Project.prototype.status = function(user) {
|
||||
Project.prototype.status = function(user, includeRemote) {
|
||||
var self = this;
|
||||
|
||||
var fetchPromise;
|
||||
if (this.remotes) {
|
||||
if (this.remotes && includeRemote) {
|
||||
fetchPromise = gitTools.getRemoteBranch(self.path).then(function(remoteBranch) {
|
||||
if (remoteBranch) {
|
||||
var allRemotes = Object.keys(self.remotes);
|
||||
|
@@ -247,9 +247,9 @@ function pull(user, project,remoteBranchName,setRemote,allowUnrelatedHistories)
|
||||
return reloadActiveProject("pull");
|
||||
});
|
||||
}
|
||||
function getStatus(user, project) {
|
||||
function getStatus(user, project, includeRemote) {
|
||||
checkActiveProject(project);
|
||||
return activeProject.status(user);
|
||||
return activeProject.status(user, includeRemote);
|
||||
}
|
||||
function resolveMerge(user, project,file,resolution) {
|
||||
checkActiveProject(project);
|
||||
|
Reference in New Issue
Block a user