return Git.branchDelete(branchName).catch(function (err) { return Utils.showOutput(err, "Branch deletion failed", { question: "Do you wish to force branch deletion?" }).then(function (response) { if (response === true) { return Git.forceBranchDelete(branchName).then(function (output) { return Utils.showOutput(output); }).catch(function (err) { ErrorHandler.showError(err, "Forced branch deletion failed"); }); } }); });
return Git.forceBranchDelete(branchName).then(function (output) { return Utils.showOutput(output); }).catch(function (err) {
Git.pull(remoteName).then(function (result) { Utils.showOutput(result, Strings.GIT_PULL_RESPONSE); }).catch(function (err) {
}).then(function (stdout) { Utils.showOutput(stdout, Strings.MERGE_RESULT).finally(function () { EventEmitter.emit(Events.REFRESH_ALL); }); });
return ProgressDialog.waitForClose().then(function () { Utils.showOutput(result, Strings.GIT_PULL_RESPONSE); });