Skip to content

Commit

Permalink
Added --delete to rsync command
Browse files Browse the repository at this point in the history
Rsync was not removing deleted files, which can mess up the project when you're moving stuff around. This patch fixes that.
  • Loading branch information
spil-jasper committed Jul 10, 2013
1 parent 55d3bc9 commit f293643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vagrant-openstack-plugin/action/sync_folders.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def call(env)

# Rsync over to the guest path using the SSH info
command = [
"rsync", "--verbose", "--archive", "-z",
"rsync", "--verbose", "--archive", "-z", "--delete",
"--exclude", ".vagrant/",
"-e", "ssh -p #{ssh_info[:port]} -o StrictHostKeyChecking=no -i '#{ssh_info[:private_key_path]}'",
hostpath,
Expand Down

0 comments on commit f293643

Please sign in to comment.