From 8057d2a5da5c085e86d8521b82bb1369d4d7ef66 Mon Sep 17 00:00:00 2001 From: sam king Date: Thu, 4 Mar 2021 08:48:58 -0800 Subject: [PATCH] switching use of master to main in git branch cmd --- src/js/git/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/git/index.js b/src/js/git/index.js index 160dfc33..1b9354b0 100644 --- a/src/js/git/index.js +++ b/src/js/git/index.js @@ -793,8 +793,8 @@ GitEngine.prototype.printBranchesWithout = function(without) { GitEngine.prototype.printBranches = function(branches) { var result = ''; - branches.forEach(function (branch) { - result += (branch.selected ? '* ' : '') + branch.id + '\n'; + branches.forEach(branch => { + result += (branch.selected ? '* ' : '') + this.resolveName(branch.id).split('"')[1] + '\n'; }); throw new CommandResult({ msg: result