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
291 stars 45 forks source link

git-deploy-php uploads files in working dir #15

Closed pocketarc closed 11 years ago

pocketarc commented 13 years ago

When deploying, git-deploy uploads the files in my working dir, not the files in the git repo. So if I made changes that I haven't committed, they're still deployed. This isn't the way it's meant to work at all.

Ciki commented 11 years ago

Well, maybe you could make use of git show <treeish>:<file> (more on http://gitready.com/intermediate/2009/02/27/get-a-file-from-a-specific-revision.html) This would be quite handy feature ;-)

pocketarc commented 11 years ago

That beats what I've done with git checkout for 2.0, without a doubt. Have just changed it to use that instead.