Closed (fixed)
Project:
CVS integration
Version:
6.x-1.x-dev
Component:
X-CVS scripts
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
7 Mar 2007 at 23:36 UTC
Updated:
22 Mar 2007 at 00:30 UTC
the effort to host install profiles on d.o infrastructure (http://drupal.org/node/113939) is now blocked solely on the ability to prevent files from being committed to the profile directories that we don't want there (modules, etc). for now, we only want .profile and .txt (e.g. README.txt) files in the 'contributions/profiles' directory.
attached patch adds functionality to xcvs-commitinfo.php and friends to provide a list of regexps which defines files that should always be denied for commits. thanks to some clever preg hackery suggested by chx (using "negative lookbehind assertions"), i even have an example regexp that meets the needs of #113939. ;)
| Comment | File | Size | Author |
|---|---|---|---|
| xcvs-commit-deny-files.patch.txt | 2.62 KB | dww |
Comments
Comment #1
dwwafter testing on s.d.o (using the scratch repo), and a "review" by killes, i committed to HEAD and DRUPAL-4-7--2, and installed it on the live contrib repo. at killes's request, i also added a regexp to prevent "*.(gz|tar|tgz|zip)" from being committed anywhere in the contrib repo, and customized the error message when you hit a denied file to provide a little more info. also, i just fixed a minor bug where the error message didn't include the full path to the denied file.
Comment #2
(not verified) commented