Lines Matching refs:repo_path
70 …public static function &create($repo_path, $source = null, \action_plugin_gitbacked_editcommit $pl… argument
71 return GitRepo::create_new($repo_path, $source, $plugin);
84 public static function open($repo_path, \action_plugin_gitbacked_editcommit $plugin = null) { argument
85 return new GitRepo($repo_path, $plugin);
101 …public static function &clone_remote($repo_path, $remote, $reference = null, \action_plugin_gitbac… argument
102 return GitRepo::create_new($repo_path, $plugin, $remote, true, $reference);
138 protected $repo_path = null; variable in GitRepo
157 …public static function &create_new($repo_path, \action_plugin_gitbacked_editcommit $plugin = null,… argument
158 if (is_dir($repo_path) && file_exists($repo_path."/.git") && is_dir($repo_path."/.git")) {
159 …throw new Exception(self::handle_create_new_error($repo_path, $reference, '"'.$repo_path.'" is alr…
161 $repo = new self($repo_path, $plugin, true, false);
165 …throw new Exception(self::handle_create_new_error($repo_path, $reference, '"'.$reference.'" is not…
192 …public function __construct($repo_path = null, \action_plugin_gitbacked_editcommit $plugin = null,… argument
194 if (is_string($repo_path)) {
195 $this->set_repo_path($repo_path, $create_new, $_init);
210 public function set_repo_path($repo_path, $create_new = false, $_init = true) { argument
211 if (is_string($repo_path)) {
212 if ($new_path = realpath($repo_path)) {
213 $repo_path = $new_path;
214 if (is_dir($repo_path)) {
216 if (file_exists($repo_path."/.git") && is_dir($repo_path."/.git")) {
217 $this->repo_path = $repo_path;
220 } else if (is_file($repo_path."/config")) {
221 $parse_ini = parse_ini_file($repo_path."/config");
223 $this->repo_path = $repo_path;
228 $this->repo_path = $repo_path;
233 …throw new Exception($this->handle_repo_path_error($repo_path, '"'.$repo_path.'" is not a git repos…
237 …throw new Exception($this->handle_repo_path_error($repo_path, '"'.$repo_path.'" is not a directory…
241 if ($parent = realpath(dirname($repo_path))) {
242 mkdir($repo_path);
243 $this->repo_path = $repo_path;
246 …throw new Exception($this->handle_repo_path_error($repo_path, 'cannot create repository in non-exi…
249 … throw new Exception($this->handle_repo_path_error($repo_path, '"'.$repo_path.'" does not exist'));
262 return ($this->bare) ? $this->repo_path : $this->repo_path."/.git";
323 $cwd = $this->repo_path;
340 …throw new Exception($this->handle_command_error($this->repo_path, $cwd, $command, $status, $error_…
342 $this->handle_command_success($this->repo_path, $cwd, $command);
369 …protected static function handle_create_new_error($repo_path, $reference, $error_message, $plugin)… argument
371 $plugin->notify_create_new_error($repo_path, $reference, $error_message);
384 protected function handle_repo_path_error($repo_path, $error_message) { argument
386 $this->plugin->notify_repo_path_error($repo_path, $error_message);
402 protected function handle_command_error($repo_path, $cwd, $command, $status, $error_message) { argument
404 $this->plugin->notify_command_error($repo_path, $cwd, $command, $status, $error_message);
418 protected function handle_command_success($repo_path, $cwd, $command) { argument
420 $this->plugin->notify_command_success($repo_path, $cwd, $command);
506 return $this->run("clone --local ".$this->repo_path." $target");
520 return $this->run("clone --local $source ".$this->repo_path);
535 return $this->run("clone $reference $source ".$this->repo_path);