Skip to content

Commit

Permalink
Remove dependency on Git library as a submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroborges committed Jul 8, 2016
1 parent 775d151 commit db15fff
Show file tree
Hide file tree
Showing 23 changed files with 948 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "vendor/git"]
path = vendor/git
url = [email protected]:sebastianbergmann/git.git
4 changes: 1 addition & 3 deletions autogit.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@

if (class_exists('Panel') or r::has('secret')) {
// Load classes
require_once(__DIR__ . DS . 'vendor' . DS . 'git' . DS . 'src' . DS . 'Git.php');
require_once(__DIR__ . DS . 'vendor' . DS . 'git' . DS . 'src' . DS . 'Exception' . DS . 'Exception.php');
require_once(__DIR__ . DS . 'vendor' . DS . 'git' . DS . 'src' . DS . 'Exception' . DS . 'RuntimeException.php');
require_once(__DIR__ . DS . 'vendor' . DS . 'autoload.php');
require_once(__DIR__ . DS . 'lib' . DS . 'autogit.php');

// Load hooks
Expand Down
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"sebastian/git": "^2.1"
}
}
64 changes: 64 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "autogit",
"author": "Pedro Borges <[email protected]>",
"version": "0.2.0",
"version": "0.3.0",
"description": "Kirby Auto Git Plugin",
"type": "kirby-plugin",
"license": "MIT"
Expand Down
7 changes: 7 additions & 0 deletions vendor/autoload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

// autoload.php @generated by Composer

require_once __DIR__ . '/composer' . '/autoload_real.php';

return ComposerAutoloaderInit416ef15d434fc90f406c0165015e55cf::getLoader();
Loading

0 comments on commit db15fff

Please sign in to comment.