aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Storage/GitRepo.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Storage/GitRepo.php')
-rw-r--r--Zotlabs/Storage/GitRepo.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/Zotlabs/Storage/GitRepo.php b/Zotlabs/Storage/GitRepo.php
index 2a24e03c0..f4a129bb3 100644
--- a/Zotlabs/Storage/GitRepo.php
+++ b/Zotlabs/Storage/GitRepo.php
@@ -75,6 +75,15 @@ class GitRepo {
}
}
}
+
+ public function initRepo() {
+ if(!$this->path) return false;
+ try {
+ return $this->git->init($this->path);
+ } catch (\PHPGit\Exception\GitException $ex) {
+ return false;
+ }
+ }
public function pull() {
try {