Skip to content

Commit db15fff

Browse files
committed
Remove dependency on Git library as a submodule
1 parent 775d151 commit db15fff

23 files changed

+948
-8
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "vendor/git"]
2-
path = vendor/git
3-
url = [email protected]:sebastianbergmann/git.git

autogit.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212

1313
if (class_exists('Panel') or r::has('secret')) {
1414
// Load classes
15-
require_once(__DIR__ . DS . 'vendor' . DS . 'git' . DS . 'src' . DS . 'Git.php');
16-
require_once(__DIR__ . DS . 'vendor' . DS . 'git' . DS . 'src' . DS . 'Exception' . DS . 'Exception.php');
17-
require_once(__DIR__ . DS . 'vendor' . DS . 'git' . DS . 'src' . DS . 'Exception' . DS . 'RuntimeException.php');
15+
require_once(__DIR__ . DS . 'vendor' . DS . 'autoload.php');
1816
require_once(__DIR__ . DS . 'lib' . DS . 'autogit.php');
1917

2018
// Load hooks

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require": {
3+
"sebastian/git": "^2.1"
4+
}
5+
}

composer.lock

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "autogit",
33
"author": "Pedro Borges <[email protected]>",
4-
"version": "0.2.0",
4+
"version": "0.3.0",
55
"description": "Kirby Auto Git Plugin",
66
"type": "kirby-plugin",
77
"license": "MIT"

vendor/autoload.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
// autoload.php @generated by Composer
4+
5+
require_once __DIR__ . '/composer' . '/autoload_real.php';
6+
7+
return ComposerAutoloaderInit416ef15d434fc90f406c0165015e55cf::getLoader();

0 commit comments

Comments
 (0)