lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Lazygit constantly tries to connect to the remote repository automatically

Open Guelakais opened this issue 1 year ago • 1 comments

Describe the bug Every time I start lazygit, lazygit tries to connect to the remote repository. Most of the time it has no access authorisation. This has led to me being locked out of my repository several times.

To Reproduce Steps to reproduce the behavior:

  1. type Layzigit into the shell.
  2. layzigit tries to connect to the remote repository.
  3. Connection error, because of course the correct ssh key was not entered every time.
  4. See error

Expected behavior Layzigit should not constantly destroy my access authorisation and manage my repository locally.

Version info: commit=v0.40.2, build date=2023-08-12T17:47:33Z, build source=binaryRelease, version=0.40.2, os=linux, arch=amd64, git version=2.43.2 git version 2.43.2

Guelakais avatar Jul 10 '24 21:07 Guelakais

You might want to set auto fetch to false:

git:
  # If true, periodically fetch from remote
  autoFetch: false

Related documentation.

mark2185 avatar Jul 10 '24 21:07 mark2185