Skip to content

Commit

Permalink
fix: skip overwriting hooks when fetching data from remotes (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox authored Jun 10, 2024
1 parent aa98a47 commit 0a82d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/lefthook/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0a82d71

Please sign in to comment.