]> _ Git - cubeextranet.git/commitdiff
#1343 @0.25
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 5 May 2017 10:56:41 +0000 (10:56 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 5 May 2017 10:56:41 +0000 (10:56 +0000)
inc/ws/Controlleur/class.ws.maintenance.php

index a330141508610e862461835e42c88d5d8d41e15b..355c9e34caa9e1cdc034eef5651969f4ba751578 100644 (file)
@@ -891,13 +891,17 @@ class wsMaintenance {
                }
                $branches = array_keys($branches);
                foreach ($branches as $b) {
+                       $git = $branchesDir . $b;
+                       $local = $localDir . $b;
                        echo '<b>' . $b . '</b>' . "\n";
                        if (!file_exists($branchesDir . $b)) {
                                $git = new CubeIT_CommandLine_Git($branchesDir);
                                echo $git->executeCmd('clone -b ' . $b . ' --single-branch git@git.cubedesigners.com:fluidbook-html5.git ' . $b);
                        }
-                       if (!file_exists($localDir . $b)) {
-                               mkdir($localDir . $b, 0777, true);
+                       if (!file_exists($local)) {
+                               mkdir($local, 0777, true);
+                               `cp -r $git/* $local`;
+                               `rm -rf $local/.git`;
                        }
                        $git = new CubeIT_CommandLine_Git($branchesDir . $b);
                        echo $git->executeCmd('reset --hard origin/' . $b);