I managed to install libgit2 with PHP-git properly on Ubuntu.
The problem I have found is that no commands in the api seem to work except:
echo git_libgit2_version().
I tried the following code:
<?php
$repo = git_repository_init('./custom/', false);
$repo2 = git_clone("https://github.com/jaysalvat/vegas.git", "/tmp/");
?>
and several other variations and nothing seems to work.
Please help as this tool is a crucial part of my app!
MANY MANY THANKS!!! Looks like a great tool if I can get it running!
EDIT: Also does it matter where I have libgit2 files. Currently I have it stored in my documents folder. how can i move this folder to another location? Does it matter?
Hi,
I managed to install libgit2 with PHP-git properly on Ubuntu. The problem I have found is that no commands in the api seem to work except: echo git_libgit2_version().
I tried the following code: <?php $repo = git_repository_init('./custom/', false); $repo2 = git_clone("https://github.com/jaysalvat/vegas.git", "/tmp/"); ?>
and several other variations and nothing seems to work. Please help as this tool is a crucial part of my app!
MANY MANY THANKS!!! Looks like a great tool if I can get it running!
EDIT: Also does it matter where I have libgit2 files. Currently I have it stored in my documents folder. how can i move this folder to another location? Does it matter?