Browse files

skip .git

  • Loading branch information...
1 parent cdb82ff commit adf9163d221b4fabbe86bf24d6015058cac8e0dd @ddollar committed Jun 1, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/anvil/heroku/command/push.rb
View
4 lib/anvil/heroku/command/push.rb
@@ -125,7 +125,9 @@ def directory_manifest(dir)
root = Pathname.new(dir)
Dir[File.join(dir, "**", "*")].inject({}) do |hash, file|
- hash[Pathname.new(file).relative_path_from(root).to_s] = file_manifest(file) unless File.directory?(file)
+ next(hash) if File.directory?(file)
+ next(hash) if file =~ /\.git/
+ hash[Pathname.new(file).relative_path_from(root).to_s] = file_manifest(file)
hash
end
end

0 comments on commit adf9163

Please sign in to comment.