Lines Matching refs:repo_path
24 protected $repo_path; variable in woolfg\\dokuwiki\\plugin\\gitbacked\\GitRepo
44 $repo_path, argument
50 … if (is_dir($repo_path) && file_exists($repo_path . "/.git") && is_dir($repo_path . "/.git")) {
52 $repo_path,
54 '"' . $repo_path . '" is already a git repository',
58 $repo = new self($repo_path, $plugin, true, false);
63 $repo_path,
95 $repo_path = null, argument
101 if (is_string($repo_path)) {
102 $this->setRepoPath($repo_path, $create_new, $_init);
117 public function setRepoPath($repo_path, $create_new = false, $_init = true) argument
119 if (is_string($repo_path)) {
120 if ($new_path = realpath($repo_path)) {
121 $repo_path = $new_path;
122 if (is_dir($repo_path)) {
124 if (file_exists($repo_path . "/.git") && is_dir($repo_path . "/.git")) {
125 $this->repo_path = $repo_path;
128 } elseif (is_file($repo_path . "/config")) {
129 $parse_ini = parse_ini_file($repo_path . "/config");
131 $this->repo_path = $repo_path;
135 $this->repo_path = $repo_path;
141 $repo_path,
142 '"' . $repo_path . '" is not a git repository'
147 $repo_path,
148 '"' . $repo_path . '" is not a directory'
152 if ($parent = realpath(dirname($repo_path))) {
153 mkdir($repo_path);
154 $this->repo_path = $repo_path;
158 $repo_path,
164 $repo_path,
165 '"' . $repo_path . '" does not exist'
179 return ($this->bare) ? $this->repo_path : $this->repo_path . "/.git";
218 $cwd = $this->repo_path;
251 $this->repo_path,
258 $this->handleCommandSuccess($this->repo_path, $cwd, $command);
286 protected static function handleCreateNewError($repo_path, $reference, $error_message, $plugin) argument
289 $plugin->notifyCreateNewError($repo_path, $reference, $error_message);
302 protected function handleRepoPathError($repo_path, $error_message) argument
305 $this->plugin->notifyRepoPathError($repo_path, $error_message);
321 protected function handleCommandError($repo_path, $cwd, $command, $status, $error_message) argument
324 $this->plugin->notifyCommandError($repo_path, $cwd, $command, $status, $error_message);
338 protected function handleCommandSuccess($repo_path, $cwd, $command) argument
341 $this->plugin->notifyCommandSuccess($repo_path, $cwd, $command);
432 return $this->run("clone --local " . $this->repo_path . " $target");
447 return $this->run("clone --local $source " . $this->repo_path);
463 return $this->run("clone $reference $source " . $this->repo_path);