Git: Git Bash Not Working in ConEmu After Update

Created on 15 Feb 2018  路  6Comments  路  Source: git-for-windows/git

  • [X] I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
git version 2.16.1.windows.4
cpu: x86_64
built from commit: ef6d451bbfef86a529ebf12620289e0f15a93d8e
sizeof-long: 4
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
Microsoft Windows [Version 10.0.16299.248]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
Editor Option: VIM
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

ConEmu build: 180206 [64] {Alpha}

 + Launch ConEmu
 + Git Bash
  • What did you expect to occur after running these commands?

Git Bash

  • What actually happened instead?

    ConEmuC: Root process was alive less than 10 sec, ExitCode=0.
    Press Enter or Esc to close console...

Possibly Related?

bug sdk-packages

Most helpful comment

Definitely related to #1473.

If you force terminal to xterm instead of default xterm-256color it works properly.

set "PATH=%ProgramFiles%\Git\usr\bin;%PATH%" & "%ProgramFiles%\Git\git-cmd.exe" --no-cd --command=%ConEmuBaseDirShort%\conemu-msys2-64.exe -t xterm /usr/bin/bash.exe -l -i -new_console:p

All 6 comments

Definitely related to #1473.

If you force terminal to xterm instead of default xterm-256color it works properly.

set "PATH=%ProgramFiles%\Git\usr\bin;%PATH%" & "%ProgramFiles%\Git\git-cmd.exe" --no-cd --command=%ConEmuBaseDirShort%\conemu-msys2-64.exe -t xterm /usr/bin/bash.exe -l -i -new_console:p

I had the same problem. Setting TERM=xterm (default was cygwin) in the command seems to fix the issue, at least for the moment. I got a nice less stackdump which is probably unusable as is (and by the way, using TERM=xterm makes vim works strangely).

Note: gitbash + conemu did not always fail (eg: in some console, I can use less and in some other it crash, while the problem on #1473 is always reproducible.
I also tried to revert to a version (latest 2.14 as far as I remember) but it still failed.

[edit] git log use less (with TERM=cygwin, as seen in Process Explorer); and less fails with TERM=cygwin. However, git log still works. Also, as I use Ctrl + Shift + O to vertically split the windows, the second git bash successfully starts less without dropping a stackdump.

I'll try again with 2.14 whenever I get the time to (Git-2.14.2-64-bit.exe which is old).

Even the plain Git Bash stop working. Have to go into the ~/.minttyrc and remove this line in order for it to work:
Term=xterm-256color

Could you test the newest snapshot from https://wingit.blob.core.windows.net/files/index.html, please? I hope it fixes this issue (which I believe is the same as in #1473).

dac@DAC514-DELL MINGW64 ~
$  git --version --build-options
git version 2.16.2.windows.1.1.g0dc4ae781f
cpu: x86_64
built from commit: 0dc4ae781f3617ce0924eccd1b09707ed115698b
sizeof-long: 4
  • Removed -t xterm workaround.
  • Launched ConEmu
  • Git Bash

Works for me.

Thanks for confirming!

Was this page helpful?
0 / 5 - 0 ratings