示例#1
0
文件: git.php 项目: Galvanio/Kinspir
 /**
  * Run a command specific to this type of repo
  *
  * @see execute for params
  * @return mixed
  */
 function run($command, $args = array(), $return = false)
 {
     extract($this->config);
     $gitDir = null;
     if (empty($this->_before) && empty($this->gitDir)) {
         $gitDir = "--git-dir={$this->path} ";
     }
     return parent::run("{$gitDir}{$command}", $args, $return);
 }