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

Do not upload self #11

Closed pocketarc closed 13 years ago

pocketarc commented 13 years ago

git-deploy is uploading its own file, which rather sucks. Should also not upload the .ini with FTP configurations, this is a security issue (hadn't thought about that! :O)

pocketarc commented 13 years ago

Then there is a problem - with multiple .ini files, it's impossible to figure out which .ini files to upload (belonging to the project) and which .ini files to ignore. So, how about the .ini files get renamed to .gitd.ini, or simply .gitd? That'd make it better.

danielzzz commented 13 years ago

this could be solve with an "ignore" table - but the simplest solution would be to ignore just the ./deploy.ini file (hardcoded)

pocketarc commented 13 years ago

This issue is sorted, with the current .ini file in the ignore table, as well as .gitignore and git-deploy. Ability to add more files to ignore exists in the code, but not in the command line yet, will sort that out in a bit.