##// END OF EJS Templates
hooks: do not crash when hook files are empty
marcink -
r691:c982b816 default
parent child Browse files
Show More
@@ -170,6 +170,8 b' def check_rhodecode_hook(hook_path):'
170
170
171
171
172 def read_hook_content(hook_path):
172 def read_hook_content(hook_path):
173 content = ''
174 if os.path.isfile(hook_path):
173 with open(hook_path, 'rb') as f:
175 with open(hook_path, 'rb') as f:
174 content = f.read()
176 content = f.read()
175 return content
177 return content
General Comments 0
You need to be logged in to leave comments. Login now