Skip to content

Commit 6fcf4c9

Browse files
committed
Fixes an issue that would cause syntax errors if trying to deploy files with parentheses in them.
1 parent 27eab5f commit 6fcf4c9

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

git-deploy

6 Bytes
Binary file not shown.

tools/src/Git.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function get_changes($target_commit, $current_commit) {
8787

8888
protected function get_file_contents($path) {
8989
$temp = tempnam(sys_get_temp_dir(), "git-deploy-");
90-
$this->exec("show $path", "> \"$temp\"");
90+
$this->exec('show "'.$path.'"', "> \"$temp\"");
9191
return file_get_contents($temp);
9292
}
9393

0 commit comments

Comments
 (0)