'hook' => [
'page.*:after' => function($newPage, $oldPage){
$git = new Git();
$git->add();
$git->commit('update from ' . $oldPage->uid() . ' to ' . $newPage->uid());
$git->push();
},
]
if I try to save a page I got this message:
The Form could not saved because
Exception: undefined
Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
If i comment $git->push() out, the commitment works without error.
But I lost the push.
HI, I try to use
$git->push()
in a hook.if I try to save a page I got this message:
If i comment
$git->push()
out, the commitment works without error. But I lost the push.Have you an Idea whats going on?
Cheers