permission denied for the git working direcotry

When using the "become" option in a host configuration, the work directory for git needs to be accesible for that user.
For example, the homedirectory from the user I use to SSH isn't readable for the user I use to deploy, so it fails with a "permission denied".
(also make sure to set the HOME enviroment variable so the correct git configuation can be read if needed)
This commit is contained in:
Michael Erkens 2017-11-27 11:14:30 +01:00 committed by GitHub
parent a0a1e1da9c
commit fe4dd4201a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,8 @@ task('deploy:update_code', function () {
$depth = '';
}
}
cd('{{deploy_path}}');
if ($gitCache && has('previous_release')) {
try {
run("$git clone $at $recursive -q --reference {{previous_release}} --dissociate $repository {{release_path}} 2>&1", $options);