Skip to content

Commit

Permalink
fix(plugins/plugin-git): kui's git branch command fails if the underl…
Browse files Browse the repository at this point in the history
…ying git command decides to paginate

Fixes #6535
  • Loading branch information
starpit committed Jan 12, 2021
1 parent 8deea34 commit 798bfd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/plugin-git/src/controller/git/branch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function isList({ argvNoOptions, parsedOptions }: Arguments<GitBranchOptions>):
}

async function doListBranches(args: Arguments<GitBranchOptions>): Promise<RadioTable> {
args.argvNoOptions.push('--no-pager') // see https://github.com/IBM/kui/issues/6535
args.argvNoOptions.push('--color=never')
const response = stripAnsi(await doExecWithStdoutViaPty(args))

Expand Down

0 comments on commit 798bfd5

Please sign in to comment.