All pastes #805845 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-12-04 18:41 UTC
rendered paste body
#!/usr/local/bin/php
<?php
$svnlook = '/usr/bin/svnlook';
$repo = escapeshellarg($argv[1]);
$txn = escapeshellarg($argv[2]);

$command_results = shell_exec("$svnlook log -t $txn $repo");

if(strlen($command_results)<10) {
        fputs(STDERR, "Restriction on log message: Please provide a commit message\n");
        exit(1);
} else {
        exit(0);
}

?>