lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Access is denied

Open jlanzarotta opened this issue 2 years ago • 9 comments

Topic I just updated from 0.36.0 to 0.37.0 and now I get "Access is denied" when I try and start lazygit.

Your thoughts Running 0.36.0 works just fine on my repo, but switching over to 0.37.0 and looking at the same repo fails. I am not sure if this is a bug or not. Any ideas?

jlanzarotta avatar Feb 02 '23 17:02 jlanzarotta

Do you have submodules?

Does it happen if you clone the repo anew somewhere else?

mark2185 avatar Feb 02 '23 18:02 mark2185

I am not using submodules. If I clone a repo into a completely new directory, I still get "Access is denied."

jlanzarotta avatar Feb 02 '23 21:02 jlanzarotta

Could you share a screenshot and the log?

mark2185 avatar Feb 02 '23 21:02 mark2185

Which log are you referring to?

The command and error is: lazygit --use-config-file .\config.yml And the error is simply: Access is denied.

jlanzarotta avatar Feb 02 '23 21:02 jlanzarotta

Even if I run lazygit in a non-git directory, I get the same 'Access is denied'. Which is strange, because using version 36, I get the message "Not in a git repository. Create a new git repository? (y/n):".

jlanzarotta avatar Feb 02 '23 21:02 jlanzarotta

Would you kindly open up an issue and filli out the bug report template so we have more info to work with?

mark2185 avatar Feb 03 '23 06:02 mark2185

How did you install lazygit? If lazygit -v gives the same error, please check the permission of which lazygit.

Ryooooooga avatar Feb 03 '23 10:02 Ryooooooga

I just downloaded lazygit_0.37.0_Windows_x86_64.zip and unzipped it. If the look at the permissions, it is owned by me.

jlanzarotta avatar Feb 03 '23 18:02 jlanzarotta

Interesting. I think it might be a permission issue. I am on my company laptop and I wonder if some shenanigans are going on... Let me do a little more testing...

Normally, I have lazygit in the c:\bin\lazygit directory. If I move the 36 version into that directory, it works as planned. However, if I move the 37 version into that directory, I get the "Access is denied" error. But... If I move the 37 version into c:\bin\lazygit\37... it works... I will do more digging.

jlanzarotta avatar Feb 03 '23 18:02 jlanzarotta