From a27e3765e268210d0cd22111a2eeaf0b95af72cc Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Mon, 10 Jun 2024 12:00:12 +0300 Subject: [PATCH] fix: skip overwriting hooks when fetching data from remotes --- internal/lefthook/install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/lefthook/install.go b/internal/lefthook/install.go index 6b9c297e..9d7a102b 100644 --- a/internal/lefthook/install.go +++ b/internal/lefthook/install.go @@ -141,7 +141,7 @@ func (l *Lefthook) syncHooks(cfg *config.Config, fetchRemotes bool) (*config.Con } // Don't rely on config checksum if remotes were refetched - return cfg, l.createHooksIfNeeded(cfg, !remotesSynced, false) + return cfg, l.createHooksIfNeeded(cfg, true, false) } func (l *Lefthook) createHooksIfNeeded(cfg *config.Config, checkHashSum, force bool) error {