ERROR: Looks like the .git directory is present. Please reinstall GVM.
I've been using this for a while. However when I tried this:
$ gvm get help error: pathspec 'help' did not match any file(s) known to git ERROR: Failed to checkout help branch $ gvm listall ERROR: Looks like the .git directory is present. Please reinstall GVM. ... After that, no matter what command I typed, returned the same error
I went through the script file. And deleted the .git dir in my $GVM_ROOT. Problem solved. But I still wonder what cause the original problem? I installed gvm by zsh
I bumped into the same thing, and deleting the .git directory fixed it. Perhaps I used some git command when I was in that directory (which is odd, because I generally don't go there.)
Ah, I did accidentally use gvm get and perhaps that caused the issue.
same here
same here, reinstalled gvm and all the gvm managed go versions, all binaries, all packages, the gvm get command is annoying somehow. if need debug features, how about moving to gvm debugget? if need pr, i will try provide one.
one could also set the environment variable GVM_NO_GIT_BAK to a non-zero value to avoid the error.
source : https://github.com/moovweb/gvm/blob/dd652539fa4b771840846f8319fad303c7d0a8d2/scripts/env/gvm#L11-L14