File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -220,9 +220,10 @@ Git.prototype.loadBranches = function () {
220
220
. map ( function ( line , index ) {
221
221
if ( line . charAt ( 0 ) === '*' ) {
222
222
self . currentBranchIndex = index ;
223
+ return _ . trim ( line . slice ( 2 ) ) ;
224
+ } else {
225
+ return _ . trim ( line ) ;
223
226
}
224
-
225
- return line . slice ( 2 ) ;
226
227
} ) ;
227
228
228
229
return this . branches ;
@@ -235,7 +236,7 @@ Git.prototype.getCurrentBranchName = function () {
235
236
Git . prototype . checkout = function ( branchIndex ) {
236
237
var gitCommand = gitExec + ' checkout ' + this . branches [ branchIndex ] ;
237
238
238
- var stdout = execSync ( gitCommand , { stdio : [ 0 , 1 , 'pipe' ] } ) ;
239
+ var stdout = execSync ( gitCommand , { stdio : [ 0 , 'pipe' , 'pipe' ] } ) ;
239
240
240
241
this . currentBranchIndex = branchIndex ;
241
242
You can’t perform that action at this time.
0 commit comments