GNOME Bugzilla – Bug 686388
Tests fail with "ERROR: missing pre-commit hook." in jhbuild
Last modified: 2015-02-07 17:01:38 UTC
When setting up a fresh jhbuild and building GNOME, a --check run regularly fails with PASS: gthash-test ERROR: missing pre-commit hook. copy misc/pre-commit to .git/hooks make[3]: *** [check-local] Error 1 While this is not hard to fix for someone looking at the logs, or having access to the server, it is rather inconvenient for automated setups and continuous integration servers. Could the makefile JFDI, i. e. actually copy the file from misc/? As far as I can see it only does local checks, not accessing the network or anything dangerous. If you agree, I'm happy to provide and test a patch.
Mmm...maybe we should just undo this requirement. A patch would be good.
Created attachment 231787 [details] [review] Automatically install pre-commit hook I like the pre-commit hook; if we drop the requirement, it just means that the message "please install me" would easily be drowned in the noise of "make check" output. So this patch takes the "JFDI" route. It works fine from both a pristine checkout as well as an already existing hook. Do you see anything bad with this approach?
Review of attachment 231787 [details] [review]: Yeah, I think other projects do this too. Looks OK, thanks!
Pushed, thanks for reviewing!
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]