thenbrent / multisite-user-management

In a Multisite WordPress, automatically add new users to each of your sites.
http://wordpress.org/extend/plugins/multisite-user-management/
GNU General Public License v2.0
122 stars 30 forks source link

Deploying git code doesn't remove previous files from trunk #16

Closed yazinsai closed 10 years ago

yazinsai commented 10 years ago

This issue is with regard to the (awesome) deploy.sh script you made. I maintain my wordpress plugin in a git repo, then use this script to deploy it to the official WP plugins repo.

The problem I noticed is that this script doesn't remove the files that I remove from my git repo (they don't show up on my local git, but appear on the pushed svn trunk).

It looks like svn co $SVNURL $SVNPATH is copying the files from the trunk, and merging them with the git repo .. as opposed to replacing them.

This would explain why files that already exist in the svn repo don't get removed.

yazinsai commented 10 years ago

Managed to fix it by placing svn rm $SVNPATH/trunk/* after creating the local copy. Would you like me to send in a PR?

thenbrent commented 10 years ago

@yazinsai ah yes true, PR would be great. :)

yazinsai commented 10 years ago

@thenbrent done!