From 21ca138edf584daebf1795a52d6edd6ec34ce605 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Tue, 7 Jun 2016 10:57:25 -0700 Subject: [PATCH] Resource.unpack: install invisible files and dirs Since patches sometimes change .gitignore and .travis.yml, it's desirable to install them along with everything else if a resource needs patching. Also, for resources that are git respositories, this allows install to interact with git objects other than the commit specifically checked out. More generally, this may help to avoid subtle issues by preserving the fidelity of resources in cases where invisible dot files play a functional role. Closes #329. Signed-off-by: ilovezfs --- Library/Homebrew/resource.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/resource.rb b/Library/Homebrew/resource.rb index 3fcdf46bdb..a11c295ab4 100644 --- a/Library/Homebrew/resource.rb +++ b/Library/Homebrew/resource.rb @@ -98,7 +98,7 @@ class Resource yield ResourceStageContext.new(self, staging) elsif target target = Pathname.new(target) unless target.is_a? Pathname - target.install Dir["*"] + target.install Pathname.pwd.children end end end