evilmartians/lefthook

Use git rev-parse origin/<branch-name> to get latest pushed ref

mrexox opened this issue · 0 comments

⚡ Summary

Instead of using @{push} or HEAD -> ... ref for getting files diffs, use the latest pushed commit hash on the current branch. And HEAD -> ... as a fallback.

Value

Behavior and configuration changes