From: Mark Plaksin <happy@usg.edu>
To: git@vger.kernel.org
Subject: Syntax check via update hook?
Date: Fri, 08 May 2009 15:43:30 -0400 [thread overview]
Message-ID: <wsprejtm71.fsf@usg.edu> (raw)
Howdy:
What's the best way to make the update hook do a syntax check?
We want to switch our Puppet [1] config repository from SVN to Git. Our
SVN repository has a pre-commit hook that does a syntax check. The hook
runs Puppet to check the syntax of the file(s) being committed and if the
check fails, the commit fails. With SVN that hook runs on the server so
it's easy to have (the correct version of) the puppet binary there for
the hook to use.
Once Puppet config changes are committed to to our SVN repository they
are automatically pushed into our production Puppet config. We want to
do something similar with Git--once commits are successfully pushed to
the master repository they are automatically pulled and become our
production Puppet config.
Git's pre-commit hook runs wherever a person happens to have checked out
the Git repository. That could be a desktop, laptop...just about
anywhere. It's harder to make sure the correct version of Puppet is in
all of those places. So we'd love for the syntax check to run on the
server. But we can't figure it out.
Thanks for any assistance!
Footnotes:
[1] http://reductivelabs.com/products/puppet/
next reply other threads:[~2009-05-08 19:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-08 19:43 Mark Plaksin [this message]
2009-05-09 14:47 ` Syntax check via update hook? Jeff King
2009-05-12 19:16 ` Mark Plaksin
2009-05-14 6:55 ` Jeff King
2009-05-14 19:52 ` Mark Plaksin
2009-05-20 15:13 ` Mark Plaksin
2009-05-20 15:22 ` Jeff King
2009-05-20 20:57 ` Mark Plaksin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=wsprejtm71.fsf@usg.edu \
--to=happy@usg.edu \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.