This repository was archived by the owner on Nov 25, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-10
lines changed
core/src/plugins/meta.git Expand file tree Collapse file tree 3 files changed +14
-10
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 5
5
<core_relation packaged =" true" tested_version =" 4.2.0" />
6
6
<plugin_author >Charles du Jeu</plugin_author >
7
7
</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" />
9
9
<client_settings >
10
10
<resources >
11
11
<i18n namespace =" meta.git" path =" plugins/meta.git/i18n" />
Original file line number Diff line number Diff line change @@ -42,14 +42,6 @@ class GitManager extends AbstractMetaSource
42
42
43
43
private $ repoBase ;
44
44
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
-
53
45
/**
54
46
* @param ContextInterface $ctx
55
47
* @param AbstractAccessDriver $accessDriver
@@ -58,7 +50,6 @@ public function performChecks()
58
50
public function initMeta (ContextInterface $ ctx , AbstractAccessDriver $ accessDriver )
59
51
{
60
52
parent ::initMeta ($ ctx , $ accessDriver );
61
- require_once ("VersionControl/Git.php " );
62
53
$ repo = $ ctx ->getRepository ();
63
54
$ this ->repoBase = $ repo ->getContextOption ($ ctx , "PATH " );
64
55
if (empty ($ this ->repoBase )){
You can’t perform that action at this time.
0 commit comments