Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.5.1

Bug #3459 $svn_path must be automatically obtained
Submitted: 2005-02-14 06:55 UTC Modified: 2005-02-14 07:05 UTC
From: mario dot lopes at fe dot up dot pt Assigned:
Status: Bogus Package: VersionControl_SVN
PHP Version: Irrelevant OS: Any
Roadmaps: (Not assigned)    
Subscription  


 [2005-02-14 06:55 UTC] mario dot lopes at fe dot up dot pt
Description: ------------ $svn_path cannot be obtained this way. For example, on my system (SuSE 9.2) svn is located on /usr/bin. For this reason, I wasn't able to authenticate, until I found this. Reproduce code: --------------- /** * Location of the svn client binary installed as part of Subversion * * @var string $svn_path * @access public */ var $svn_path = '/usr/local/bin/svn';

Comments

 [2005-02-14 07:05 UTC] clay
This isn't a bug. You simply need to set the svn_path property in your instance to the path to svn on your system. For example: <?php require_once 'VersionControl/SVN.php'; $options = array( 'url' => 'https://www.example.com/repos', 'path' => 'your_project', 'username' => 'your_login', 'password' => 'your_password', 'svn_path' => '/usr/bin/svn' ); // Run a log command $svn = VersionControl_SVN::factory('log', $options); print_r($svn->run()); ?>