Skip to content

Commit 5d5eb7a

Browse files
committed
Added permissions check to site checkout.
1 parent b735d84 commit 5d5eb7a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Command/SiteCheckoutCommand.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,12 @@ protected function gitClone($branch, $repo, $destination) {
276276
* @throws SiteCommandException
277277
*/
278278
protected function gitCheckout($branch, $destination) {
279-
$command = sprintf('cd %s && git fetch --all && git checkout %s',
279+
$command = sprintf(
280+
'cd %s && ' .
281+
'git fetch --all && ' .
282+
'git checkout %s && ' .
283+
'chmod 777 ../default && ' .
284+
'chmod 777 settings.php && ',
280285
$this->shellPath($destination),
281286
$branch
282287
);

0 commit comments

Comments
 (0)