Skip to content

Commit 0a82d71

Browse files
authored
fix: skip overwriting hooks when fetching data from remotes (#745)
1 parent aa98a47 commit 0a82d71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/lefthook/install.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func (l *Lefthook) syncHooks(cfg *config.Config, fetchRemotes bool) (*config.Con
141141
}
142142

143143
// Don't rely on config checksum if remotes were refetched
144-
return cfg, l.createHooksIfNeeded(cfg, !remotesSynced, false)
144+
return cfg, l.createHooksIfNeeded(cfg, true, false)
145145
}
146146

147147
func (l *Lefthook) createHooksIfNeeded(cfg *config.Config, checkHashSum, force bool) error {

0 commit comments

Comments
 (0)