Skip to content

Commit

Permalink
Use rsync to exclude copying the fsmonitor--daemon.ipc
Browse files Browse the repository at this point in the history
  • Loading branch information
justinseanmartin committed Apr 16, 2024
1 parent 54f95f9 commit 75d5503
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Expand Up @@ -12,7 +12,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`

##### Bug Fixes

* None.
* Fix pod install issue when git's `core.fsmonitor` feature is enabled (again)
[Justin Martin](https://github.com/justinseanmartin)
[#12349](https://github.com/CocoaPods/CocoaPods/issues/12349)


## 1.15.2 (2024-02-06)
Expand Down
3 changes: 1 addition & 2 deletions lib/cocoapods/downloader/cache.rb
Expand Up @@ -283,8 +283,7 @@ def copy_and_clean(source, destination, spec)
specs_by_platform = group_subspecs_by_platform(spec)
destination.parent.mkpath
Cache.write_lock(destination) do
FileUtils.rm_rf(destination)
FileUtils.cp_r(source, destination)
Pod::Executable.execute_command('rsync', ['-a', '--exclude=.git', '--delete', "#{source}/", destination])
Pod::Installer::PodSourcePreparer.new(spec, destination).prepare!
Sandbox::PodDirCleaner.new(destination, specs_by_platform).clean!
end
Expand Down

0 comments on commit 75d5503

Please sign in to comment.