We have a development team that is using a 50/50 split of GitHub for windows and Bash shell for their Git management.
We have implemented a pre-commit hook (designed to run unit tests and fail the commit when tests fail). As a simplified version I have attached a cut down version below which demos our issue.
#!/bin/sh
exit 1
If we attempt a commit from the bash shell, the commit as expected fails. However if we perform the same commit from the GitHub for windows application it is successfully committed to the local repo.
So Does anyone know how we can get the same functionality from GitHub application? Unfortunately we can’t move the users off the application, and its now an obvious hole.
Thanks for your help.
Sorry to be the bearer of bad news, but GitHub for Windows doesn’t support pre-commit hooks, since it uses libgit2 to commit.