We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c6e886 commit c78d859Copy full SHA for c78d859
1 file changed
recipe/deploy/update_code.php
@@ -81,11 +81,12 @@
81
}
82
83
if ($strategy === 'local_archive') {
84
- runLocally("$git archive $targetWithDir -o archive.tar");
85
- upload('archive.tar', '{{release_path}}/archive.tar');
+ $gitRoot = runLocally("$git rev-parse --show-toplevel");
+ runLocally("$git -C " . escapeshellarg($gitRoot) . " archive $targetWithDir -o archive.tar");
86
+ upload("$gitRoot/archive.tar", '{{release_path}}/archive.tar');
87
run("tar -xf {{release_path}}/archive.tar -C {{release_path}}");
88
run("rm {{release_path}}/archive.tar");
- unlink('archive.tar');
89
+ unlink("$gitRoot/archive.tar");
90
91
$rev = escapeshellarg(runLocally("git rev-list $target -1"));
92
} else {
0 commit comments