[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Can I refuse commits containing virus infected files on the server?

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-01-18 17:53:36 CET

On Jan 18, 2006, at 12:59, Tim Bruijnzeels wrote:

> Is it possible to refuse commits to a subversion repository based
> on the
> content of files that are being committed? And if so, how?


> My first idea was to write a pre-commit script, that:
> - passes the new files to a virus scanner
> - fails (exit 1) if any of them contain a virus; preferably giving the
> user a warning.
> But from what I have found so far is that during a pre-commit I can
> get
> access to all meta-data (author, log message, filenames, etc), but not
> the actual files themselves. Does anybody know:
> a) whether this can actually be done

You can look at the files' contents in the pre-commit hook by using
"svnlook cat" on the incoming transaction.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 18 21:14:59 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.