can't attach new Git For Windows 2.0 #176
Comments
In trouble shooting it I realized conemu and mintty are both terminals. So it was a bit redundant. Not sure if it should work that way or not. Though when WinGit2 replaces the current one, I'm sure many more people will run into this issue. I'm not sure how git-bash.exe is launching it, but I just created a shortcut file that kind of matched that msys did when it fell bash to sh:
and that seems to work fine. Don't know if there are any special env variables that are important to set, like MSYSTEM, MSYS, or anything else. Oh, I also had to change in
It was |
Calling cmd.exe before bash is absolutely excessive. Look how ConEmu creates default tasks when you run Also, there was an issue in git-for-windows |
I'm able to successfully attach git-bash.exe from the Git 2.4.2.1 release candidate, by using the following task command in ConEmu (details originally found here and here):
The only quirk is that this actually creates 2 tabs... one for git-bash.exe, which is effectively hung for the duration, and a second for the console window which it creates. Thus far, I haven't found any way around the multiple tabs. @Maximus5, is it possible to make ConEmu hide a tab (without showing the original, hidden console window)? If so, that would likely be a usable workaround. |
I should have added that the following task command works, at least for the time being, without the multiple-tab side effect.
I'd prefer to avoid this approach, however, since git-bash.exe may perform additional setup which causes this method to break in future. |
I haven't decided yet which behavior or switches would be correct for running git-bash.exe. This tool is compiled as GUI application but it starts console window, may be improperly. Perhaps I will create pull request for git-for-windows later. |
Preferred way to run git-for-windows is using
|
I'm running the new Windows Git 2.0 release candidate. It uses msys2 and mintty.
If I open git bash, and try to attach window it throws an error as attached. With the previous version of windows git, when I ran git bash, it automatically attached to conemu, a feature I'd like to re-enable.
I also installed msys2 stand alone and that does attach. Also when I open msys2, it always opens a cmd window that gets attached to conemu that just says press any key to close, not problematic though.
EDIT: actually, msys2 stopped attaching as well, not sure what changed.
The text was updated successfully, but these errors were encountered: