Return the proper validation value if "HEAD" is the to-be-validated revision

(fixes issue 568)
master
Thomas Keller 2010-11-17 19:10:51 +01:00
parent 35e670a1ab
commit 08ef485ca9
1 changed files with 2 additions and 1 deletions

View File

@ -141,8 +141,9 @@ class IDF_Scm_Svn extends IDF_Scm
public function validateRevision($rev)
{
if ($rev == 'HEAD') {
return true;
return IDF_Scm::REVISION_VALID;
}
$cmd = sprintf(Pluf::f('svn_path', 'svn').' info --username=%s --password=%s %s@%s',
escapeshellarg($this->username),
escapeshellarg($this->password),