We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfd41ad commit 1ac5668Copy full SHA for 1ac5668
lib/redmine_gitolite/hooks.rb
@@ -262,6 +262,15 @@ def install_hook_file(hook_data)
262
end
263
264
265
+ def hook_file_exists?(hook_path)
266
+ begin
267
+ GitoliteWrapper.sudo_file_exists?(hook_path)
268
+ rescue GitHosting::GitHostingException => e
269
+ return false
270
+ end
271
272
+
273
274
def hook_digest(hook_data)
275
hook_name = hook_data[:source]
276
source_path = File.join(PACKAGE_HOOKS_DIR, hook_data[:source])
@@ -283,15 +292,6 @@ def update_gitolite
283
292
284
293
285
294
286
- def hook_file_exists?(hook_path)
287
- begin
288
- GitoliteWrapper.sudo_file_exists?(hook_path)
289
- rescue GitHosting::GitHostingException => e
290
- return false
291
- end
-
295
###############################
296
## ##
297
## GIT PARAMS ##
0 commit comments