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

Option to ignore git hooks #20

Open
mindseyeblind opened this issue Jan 4, 2022 · 1 comment
Open

Option to ignore git hooks #20

mindseyeblind opened this issue Jan 4, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@mindseyeblind
Copy link

Hey, great tool, thank you for making it. I do have one concern, though - some repositories I work on have extensive pre-commit scripts that do things like run the entire test suite and ensure that nothing fails. This would probably cause Dura's commits to fail as tests are more often than not broken while new code is being written.

I'm not familiar with Rust myself, but I'm not sure if git2's commit function supports the --no-verify flag, or if it skips git hooks by default.

@tkellogg
Copy link
Owner

tkellogg commented Jan 4, 2022

Have you tried dura yet? This SO answer suggests to someone that they use libgit2 instead of Git for this exact reason. Can you verify that it does this?

FWIW I pushed a commit last night that writes JSON logs to ~/.config/dura/logs. You could look at the latency left in these logs, or you could just leave the dura serve window open.

@tkellogg tkellogg added the help wanted Extra attention is needed label Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants