diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-05-21 19:02:23 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-05-21 19:02:23 -0400 |
commit | 049147a9d78b981482297c3daf48c67f31754259 (patch) | |
tree | 79584e1c5a6153642732852d8e328f210860d178 /Zotlabs/Storage/GitRepo.php | |
parent | 5f2baa59f5491f3be964b60fce4bec2ccd840ac1 (diff) | |
download | volse-hubzilla-049147a9d78b981482297c3daf48c67f31754259.tar.gz volse-hubzilla-049147a9d78b981482297c3daf48c67f31754259.tar.bz2 volse-hubzilla-049147a9d78b981482297c3daf48c67f31754259.zip |
Successful new wiki git repo and item table record
Diffstat (limited to 'Zotlabs/Storage/GitRepo.php')
-rw-r--r-- | Zotlabs/Storage/GitRepo.php | 9 |
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 { |