Explorar o código

git mode the same with svn mode, rsync the diff

wushuiyong %!s(int64=9) %!d(string=hai) anos
pai
achega
59fae34d26
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      components/Folder.php

+ 2 - 4
components/Folder.php

@@ -39,10 +39,8 @@ class Folder extends Command {
      */
     public function initRemoteVersion($version) {
         $cmd[] = sprintf('mkdir -p %s', Project::getReleaseVersionDir($version));
-        if ($this->config->repo_type == Project::REPO_SVN) {
-            $cmd[] = sprintf('test -d %s && cp -rf %s/* %s/ || echo 1', // 无论如何总得要$?执行成功
-                $this->config->release_to, $this->config->release_to, Project::getReleaseVersionDir($version));
-        }
+        $cmd[] = sprintf('test -d %s && cp -rf %s/* %s/ || echo 1', // 无论如何总得要$?执行成功
+            $this->config->release_to, $this->config->release_to, Project::getReleaseVersionDir($version));
         $command = join(' && ', $cmd);
 
         return $this->runRemoteCommand($command);