[PATCH] Fixed issue 41 - View Source : Missing argument 2 for IDF_Scm_Svn::getBlob()
Created an unique method declaration in the tow scm backend. Passed a more generic argument so that the scm backend could get the correct data.
This commit is contained in:
committed by
Loic d'Anterroches
parent
e4f7dd8975
commit
bd15328758
@@ -203,14 +203,15 @@ class IDF_Scm_Git
|
||||
/**
|
||||
* Get a blob.
|
||||
*
|
||||
* @param string Blob hash
|
||||
* @param string request_file_info
|
||||
* @param null to be svn client compatible
|
||||
* @return string Raw blob
|
||||
*/
|
||||
public function getBlob($hash)
|
||||
public function getBlob($request_file_info, $dummy=null)
|
||||
{
|
||||
return shell_exec(sprintf('GIT_DIR=%s git-cat-file blob %s',
|
||||
escapeshellarg($this->repo),
|
||||
escapeshellarg($hash)));
|
||||
escapeshellarg($request_file_info->hash)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user