diff --git a/lib/divergence/cache_manager.rb b/lib/divergence/cache_manager.rb index 8014c25..0797585 100644 --- a/lib/divergence/cache_manager.rb +++ b/lib/divergence/cache_manager.rb @@ -28,7 +28,7 @@ def add(branch, src_path) end def sync(branch, src_path) - `rsync -a --delete #{src_path}/* #{path(branch)}` + `rsync -a --delete --exclude .git --exclude .gitignore #{src_path}/ #{path(branch)}` end def path(branch)