Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 0b30150

Browse files
committed
Fix meta.git with composer
1 parent daca885 commit 0b30150

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name" : "meta.git",
3+
"autoload": {
4+
"psr-4": {
5+
"Pydio\\Access\\Meta\\Version\\" : "./src"
6+
}
7+
},
8+
"require": {
9+
"pear/versioncontrol_git": "dev-master"
10+
11+
}
12+
13+
}

core/src/plugins/meta.git/manifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<core_relation packaged="true" tested_version="4.2.0"/>
66
<plugin_author>Charles du Jeu</plugin_author>
77
</plugin_info>
8-
<class_definition classname="Pydio\Access\Meta\Version\GitManager" filename="plugins/meta.git/GitManager.php"/>
8+
<class_definition classname="Pydio\Access\Meta\Version\GitManager" filename="plugins/meta.git/vendor/autoload.php"/>
99
<client_settings>
1010
<resources>
1111
<i18n namespace="meta.git" path="plugins/meta.git/i18n"/>

core/src/plugins/meta.git/GitManager.php renamed to core/src/plugins/meta.git/src/GitManager.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@ class GitManager extends AbstractMetaSource
4242

4343
private $repoBase;
4444

45-
public function performChecks()
46-
{
47-
$ex = ApplicationState::searchIncludePath("VersionControl/Git.php");
48-
if (!$ex) {
49-
throw new \Exception("Cannot find PEAR library VersionControl/Git");
50-
}
51-
}
52-
5345
/**
5446
* @param ContextInterface $ctx
5547
* @param AbstractAccessDriver $accessDriver
@@ -58,7 +50,6 @@ public function performChecks()
5850
public function initMeta(ContextInterface $ctx, AbstractAccessDriver $accessDriver)
5951
{
6052
parent::initMeta($ctx, $accessDriver);
61-
require_once("VersionControl/Git.php");
6253
$repo = $ctx->getRepository();
6354
$this->repoBase = $repo->getContextOption($ctx, "PATH");
6455
if(empty($this->repoBase)){

0 commit comments

Comments
 (0)