var $svnpath;
/**
- * Constructor: validate SVN path
- *
- * @param string Path to SVN binary
+ * Constructor
*/
- function SVNLib($svnpath)
+ function SVNLib()
{
global $viewsvn;
-
- $this->svnpath = $viewsvn->shell->cmd($svnpath);
-
- $access = $viewsvn->shell->exec($this->svnpath . ' --version');
-
- if (!$access)
- {
- $viewsvn->trigger->error($viewsvn->lang->string('The SVN binary could not be located'));
- }
-
- if (!preg_match('#^svn, version (.*?)\)$#i', trim($access[0])))
- {
- $viewsvn->trigger->error($viewsvn->lang->string('The SVN binary does not appear to be valid (it failed our tests)'));
- }
}
/**