Skip to content

Commit

Permalink
fix(plugins/plugin-git): git branch command fails if the underlying g…
Browse files Browse the repository at this point in the history
…it command decides to paginate

Fixes kubernetes-sigs#6535
  • Loading branch information
myan9 authored and starpit committed Jan 12, 2021
1 parent bb69165 commit ec482ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/plugin-git/src/controller/git/branch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ 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')
args.command = args.command.replace('git', 'git --no-pager')
args.command = `${args.command} --color=never`
const response = stripAnsi(await doExecWithStdoutViaPty(args))

let defaultSelectedIdx = 0
Expand Down

0 comments on commit ec482ed

Please sign in to comment.