Example #1
0
 function _add_git_group_action()
 {
     $groupName = $this->post('git_group_name');
     $code = \firegit\git\Manager::addGroup($groupName);
     if ($code) {
         throw new \Exception('firegit.mkdir_error');
     }
 }
Example #2
0
 function sync_hooks_action()
 {
     \firegit\git\Manager::initHooks();
 }
Example #3
0
<?php

exec('whoami', $outputs);
$user = $outputs[0];
if ($user != 'root') {
    $binDir = realpath(__DIR__ . '/../../../../bin/');
    $cmd = "{$binDir}/chother php " . __FILE__;
    exit(system($cmd));
}
require_once dirname(__DIR__) . '/Manager.php';
\firegit\git\Manager::init('ronnie', 'firegit');
echo "\nok\n";