Show More
@@ -170,8 +170,10 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 | with open(hook_path, 'rb') as f: |
|
173 | content = '' | |
174 | content = f.read() |
|
174 | if os.path.isfile(hook_path): | |
|
175 | with open(hook_path, 'rb') as f: | |||
|
176 | content = f.read() | |||
175 | return content |
|
177 | return content | |
176 |
|
178 | |||
177 |
|
179 |
General Comments 0
You need to be logged in to leave comments.
Login now