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

Modify commit-msg or post-commit git hooks to properly sync version with current commit #4

Open
jeffrey-cochran opened this issue Dec 31, 2017 · 0 comments

Comments

@jeffrey-cochran
Copy link
Owner

If using git from the command line, the commit-msg hook is invoked after the commit process is started; so, the flags in the message are parsed and the version file is modified after the commit completes (i.e., they're not staged in time).

Potential fix would be to include a check for staged version file in the post-commit hook and, if it's present, amend the commit to include it.

This is not an issue for folks using JGit with Eclipse.

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

No branches or pull requests

1 participant