MSYS2-packages: git gui fails with "No working directory ..."
Hi,
Since upgrading, git gui
fails with this error popup:
The working directory does exist.
About this issue
- Original URL
- State: open
- Created 7 years ago
- Reactions: 1
- Comments: 19 (3 by maintainers)
Since the OP didn’t specify the affected version, I’ll add that this issue is still present in package git 2.12.1-1.
Before you get to this error, you will also stumble upon “bitmap “/usr/share/git-gui/lib/git-gui.ico” not defined”. It can be worked around with adding to your ~/.bashrc:
export GIT_GUI_LIB_DIR=<msys2_installation_folder>/usr/share/git-gui/lib
for instance:export GIT_GUI_LIB_DIR=/c/msys64/usr/share/git-gui/lib
and then reloading your bash profile:. ~/.bashrc
(based on https://sourceforge.net/p/msys2/discussion/general/thread/1bf2e8a6/)
A different workaround than downgrading would be to install Git from https://git-for-windows.github.io/ and then add an alias to ~/.bashrc:
alias git='/c/Program\ Files/Git/cmd/git.exe'
As a benefit you also get a newer version than in Msys2.Still true in 2.34.1-1 installed with
pacman
+msys2
Both workarounds mentioned in https://github.com/msys2/MSYS2-packages/issues/801#issuecomment-299442554 still work: