Skip to content

"Incorrect function" error in Windows Git Bash terminal #404

@DouglasLivingstone

Description

@DouglasLivingstone

Describe the bug

When running commands that require interactive input in the Windows Git Bash terminal (installed using the Windows Git installer), there is an error:

$ gh pr create
Creating pull request for [...] into master in [...]
? Title could not collect title and/or body: could not prompt: Incorrect function.

Versions:

$ git --version
git version 2.25.0.windows.1

$ gh --version
gh version 0.5.4 (2020-02-04)
https://github.com/cli/cli/releases/tag/v0.5.4

Steps to reproduce the behavior

  1. Install Git and GitHub CLI on Windows
  2. Open Git Bash, and cd into a repo
  3. Run gh pr create

Expected vs actual behavior

Expectation is the interactive UI to create a PR, instead there is an error message:

? Title could not collect title and/or body: could not prompt: Incorrect function.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingp2Affects more than a few users but doesn't prevent core functionswindows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions