Skip to content

Commit 8ae7a10

Browse files
#785 exclude python cache directory for custom hooks
1 parent 03c7157 commit 8ae7a10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: contrib/hooks/post-receive/lib/git_hosting_custom_hook.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def get_executables(directory)
5252
executables = []
5353
if File.directory? directory
5454
Dir.foreach directory do |item|
55-
next if ['.', '..'].include? item
55+
next if ['.', '..', '__pycache__'].include? item
5656

5757
# Use full relative path
5858
path = "#{directory}/#{item}"

0 commit comments

Comments
 (0)