Fixed to avoid double slashes in the path to folders.
This commit is contained in:
parent
9c44bc5fe5
commit
7cc244ec06
@ -140,16 +140,17 @@ class IDF_Scm_Svn
|
|||||||
$xmlLs = IDF_Scm::shell_exec($cmd);
|
$xmlLs = IDF_Scm::shell_exec($cmd);
|
||||||
$xml = simplexml_load_string($xmlLs);
|
$xml = simplexml_load_string($xmlLs);
|
||||||
$res = array();
|
$res = array();
|
||||||
|
$folder = (strlen($folder)) ? $folder.'/' : '';
|
||||||
foreach ($xml->list->entry as $entry) {
|
foreach ($xml->list->entry as $entry) {
|
||||||
$file = array();
|
$file = array();
|
||||||
$file['type'] = $this->assoc[(string) $entry['kind']];
|
$file['type'] = $this->assoc[(string) $entry['kind']];
|
||||||
$file['file'] = (string) $entry->name;
|
$file['file'] = (string) $entry->name;
|
||||||
$file['fullpath'] = $folder.'/'.((string) $entry->name);
|
$file['fullpath'] = $folder.((string) $entry->name);
|
||||||
$file['date'] = gmdate('Y-m-d H:i:s',
|
$file['date'] = gmdate('Y-m-d H:i:s',
|
||||||
strtotime((string) $entry->commit->date));
|
strtotime((string) $entry->commit->date));
|
||||||
$file['rev'] = (string) $entry->commit['revision'];
|
$file['rev'] = (string) $entry->commit['revision'];
|
||||||
// Get commit message
|
// Get commit message
|
||||||
$currentReposFile = $this->repo.'/'.$folder.'/'.$file['file'];
|
$currentReposFile = $this->repo.'/'.$folder.$file['file'];
|
||||||
$file['log'] = $this->getCommitMessage($currentReposFile, $rev);
|
$file['log'] = $this->getCommitMessage($currentReposFile, $rev);
|
||||||
|
|
||||||
// Get the size if the type is blob
|
// Get the size if the type is blob
|
||||||
|
Loading…
Reference in New Issue
Block a user