Skip to content

Commit

Permalink
#785 exclude python cache directory for custom hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Oct 21, 2021
1 parent 03c7157 commit 8ae7a10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/hooks/post-receive/lib/git_hosting_custom_hook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def get_executables(directory)
executables = []
if File.directory? directory
Dir.foreach directory do |item|
next if ['.', '..'].include? item
next if ['.', '..', '__pycache__'].include? item

# Use full relative path
path = "#{directory}/#{item}"
Expand Down

0 comments on commit 8ae7a10

Please sign in to comment.