gvm icon indicating copy to clipboard operation
gvm copied to clipboard

ERROR: Looks like the .git directory is present. Please reinstall GVM.

Open Sylariam opened this issue 1 year ago • 5 comments

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

Sylariam avatar Mar 27 '24 08:03 Sylariam

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

Sylariam avatar Mar 27 '24 08:03 Sylariam

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.

jlearman avatar Jul 03 '24 14:07 jlearman

same here

notrobpike avatar Sep 08 '24 22:09 notrobpike

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.

sansna avatar Feb 10 '25 09:02 sansna

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

shinenelson avatar Feb 20 '25 13:02 shinenelson