Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to check diffs with TortoiseGit: "fatal: empty string is not a valid pathspec"

Currently, I did a re-installation of my windows 10. I also installed Git and TortoiseGit.

Right now when I try to check diffs I have theses two errors in a window:

fatal: empty string is not a valid pathspec, please use . instead if you meant to match all paths

I click ok, then the other window error is:

Failed to get UnRev file list fatal: empty string is not a valid pathspec, please use . instead if you meant to match all paths

I click ok and it does not show me any errors in the "working tree" diffs.

Git.exe is in :

C:\Program Files\Git\bin

And the path is set correctly in the General menu (settings) of Tortoisegit.

Anyone know how to fix this issue ? Thanks.

like image 676
zeflex Avatar asked Jan 25 '18 22:01

zeflex


1 Answers

TortoiseGit 2.5 is not yet fully compatible to Git >= 2.16. See https://TortoiseGit.org and the corresponding bug report: https://TortoiseGit.org/issue/3138

Update: Use the latest stable version of TortoiseGit: https://tortoisegit.org/download/

like image 168
MrTux Avatar answered Nov 12 '22 18:11

MrTux