Skip to content

Commit 6a74030

Browse files
committed
Fixes a bug with grabbing file contents.
1 parent 2d9cda6 commit 6a74030

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

git-deploy

100644100755
1.5 MB
Binary file not shown.

tools/src/Git.php

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

9393
protected function get_file_contents($path) {
9494
$temp = tempnam(sys_get_temp_dir(), "git-deploy-");
95-
$this->exec('show ' . escapeshellarg($path), "> \"$temp\"");
95+
$this->exec('show ' . $path, "> \"$temp\"");
9696
return file_get_contents($temp);
9797
}
9898

0 commit comments

Comments
 (0)