Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: skip git lfs hook when calling manually #855

Merged

Conversation

mrexox
Copy link
Member

@mrexox mrexox commented Oct 23, 2024

Closes #836

🔧 Summary

  • Ignore running git-lfs hook if no args are passed (usually when running manually from terminal)
  • Small refactoring since map matches more for checking the available hooks than array

@mrexox mrexox force-pushed the fix/skip-git-lfs-hook-when-calling-manually branch from f644269 to 1938c4a Compare October 23, 2024 07:39
@mrexox mrexox marked this pull request as ready for review October 23, 2024 07:53
@mrexox mrexox merged commit 453d026 into evilmartians:master Oct 23, 2024
15 of 17 checks passed
@mrexox mrexox deleted the fix/skip-git-lfs-hook-when-calling-manually branch October 23, 2024 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"lefthook run pre-push" hangs waiting for stdin when git-lfs is active
1 participant