MINGW-packages: git error: "fatal: BUG: disabling cancellation: Invalid argument"
Since some updates, when I try to use git pull
I get the error fatal: BUG: disabling cancellation: Invalid argument
. I use a proxy.
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 7
- Comments: 51 (9 by maintainers)
Just found out that it works in cmd.exe if you have msys2.exe running but not using it. As soon as you close the msys2 shell - boom it does not work anymore. So there is some interprocess communication involved with either bash.exe or mintty.exe
Just msys2 installation for me, and it doesn’t work from any shell if msys2 shell is not open. But if I open a msys2 shell, it works even from every shell.
I have deleted my old answer.
Simple answer: There are two
git.exe
, they fight.What to do?
@beliaev-maksim Once git is called in terminal, shell looks for executable in path and finds MSYS2 git first. Just edit your environment variables the way, that first comes “git” and then “MSYS2”
dmytrol’s solution DID NOT fix for me, as the path was right.
In my case as henkman writes it works in cmd.exe if msys window is open (https://github.com/Alexpux/MINGW-packages/issues/3351#issuecomment-368065275).
In my case, just open msys2_shell.cmd previosly and it works :S
Same issue: Win10 Windows Command Prompt, git pull and git clone fail in command prompt unless an instance of an MSYS shell is running. There is only one instance of git on this machine.
Possibly relevant, Strawberry Perl and Miniconda are installed and in the path.
In my case this was caused by a path to a different instance of msys64 preceding a path to the Git binaries in the PATH environment variable. Removing the path to msys64 fixed the problem.
Same on me with MSYS2, git-2.17.0. I need to have msys2 or mingw64/32 windows open, or certain git commands (ie
git log
,diff
) fail with the above error. Butgit --version
orgit status
add
run fine.Very strange.