This is simple recipe for copy git repository.
git "/home/testuser" do
repository git_repo
revision 'master'
action :sync
end
git_repo
is a variable which has path of git repository.
This works fine when run first time. But if my repository is already sync and if some file changed or delete in local copied repository folder then by run this git resource will not update local repository and say up to date even some files deleted in local repository.
Why this is happening even some files are not in local copied repository ?