git-machete icon indicating copy to clipboard operation
git-machete copied to clipboard

`git rev-parse --short ...^{commit} returned 128`

Open PawelLipski opened this issue 3 years ago • 3 comments

As reported by @mkondratek:

mkondratek@VL-D-1096 git-machete-intellij-plugin % git machete s
git rev-parse --short 0958ae8b40cfcdd991af5fa08709011c43344f51^{commit} returned 128

stderr:
fatal: Needed a single revision

TBD if it's corrupted git repo, or a bug on our side

PawelLipski avatar Aug 02 '22 13:08 PawelLipski

Rel https://github.com/VirtusLab/git-machete-intellij-plugin/issues/1029

PawelLipski avatar Aug 02 '22 13:08 PawelLipski

Oh! a commit recorded as whileDescendentOf in fork point override no longer exists:

machete.overrideForkPoint.chore/drop-support-for-2021.1.whiledescendantof=0958ae8b40cfcdd991af5fa08709011c43344f51

This is surprising, I thought there's a proper validation for these values... anyway, for a workaround @mkondratek, just run

git machete fork-point --unset-override chore/drop-support-for-2021.1

PawelLipski avatar Aug 02 '22 13:08 PawelLipski

Note that #611 suggests removal of this config key... let's check however, if the same problem occurs with to config key

PawelLipski avatar Aug 02 '22 17:08 PawelLipski