pocketarc / git-deploy-php

git-deploy-php is a simple php-based tool that deploys your Git repositories to FTP/SFTP servers, and keeps them updated automatically.
http://brunodebarros.github.io/git-deploy-php
292 stars 45 forks source link

Files are copied with 0 bytes #31

Closed gazeau closed 10 years ago

gazeau commented 10 years ago

Problem : The files are copied with 0 bytes on Windows environement. After digging a bit on the code, I fixed the issue by adding double quotes instead of single quotes in the following method: Git::get_file_contents() $this->exec("show $path", "> \"$temp\""); Single quotes don't work in windows.

Cheers

pocketarc commented 10 years ago

Fixed! Thank you for letting me know, and for tracking down the error for me; it was really helpful.