fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths
Vor kurzem bekam ich bei einem git-Befehl diese Fehlermeldung
fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths
Grund für die Fehlermeldung war dass ich einen git-Befehl wie diesen ausgeführt habe
git rev-list --count ''
Nach ein bisschen suchen kam ich auf den Grund der Fehlermeldung
An empty string as a pathspec element that means "everything" i.e. 'git add ""', is now illegal. We started this by first deprecating and warning a pathspec that has such an element in 2.11 (Nov 2016).
Mit anderen Worten, ich musste meinen git-Befehl so anpassen, dass sich anstelle der zwei Apostrophe eine Commit ID befindet, also z.B.
git rev-list --count e12821
oder
git rev-list --count HEAD