leoafarias / fvm

Flutter Version Management: A simple CLI to manage Flutter SDK versions.
https://fvm.app
MIT License
4.43k stars 213 forks source link

The provided value cache.git is not the root of a git directory #731

Open joshua1996 opened 1 month ago

joshua1996 commented 1 month ago

image

leoafarias commented 1 month ago

@joshua1996 I have released version 3.1.5, which should handle errors better. Is that the version you tested with?

joshua1996 commented 1 month ago

@leoafarias i tested version 3.1.5 and 3.1.6

TuongNM commented 4 weeks ago

I also have this issue with fvm 3.1.7.

In my case I'm using dart_pre_commit in a Git precommit hook. My flutter project is a submodule of another Git project. I'm getting this error if I try to commit inside the submodule. But everything works if the flutter project is separately checked out.