[Bug 696182] Add pre-receive hook to jhbuild repository to catch XML errors
- From: "sysadmin" (bugzilla.gnome.org) <bugzilla gnome org>
- To: gnome-infrastructure gnome org
- Subject: [Bug 696182] Add pre-receive hook to jhbuild repository to catch XML errors
- Date: Fri, 22 Mar 2013 08:23:47 +0000 (UTC)
https://bugzilla.gnome.org/show_bug.cgi?id=696182
sysadmin | Git | unspecified
--- Comment #6 from Philip Withnall <bugzilla tecnocode co uk> 2013-03-22 08:23:42 UTC ---
Created an attachment (id=239519)
View: https://bugzilla.gnome.org/attachment.cgi?id=239519
Review: https://bugzilla.gnome.org/review?bug=696182&attachment=239519
Draft pre-receive hook to check jhbuild modulesets
Here’s a first draft of a pre-receive hook to implement this. As suggested, it
avoids executing arbitrary code on the server (`make check-modulesets`) by
replicating the xmllint call itself. It’s only one line of code. It checks
every moduleset file updated in a commit, but doesn’t re-check all modulesets
if the DTD changes (see the comment at the top of the file). I don’t know if we
want this.
It’s completely untested and may have silly syntax errors or explode. I’m just
attaching it to get feedback on whether sysadmins (and others) think this is
the right approach.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the QA contact of the bug.
You are watching the assignee of the bug.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]