Skip to content

Commit 1ac5668

Browse files
author
root
committed
Move method up
1 parent bfd41ad commit 1ac5668

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Diff for: lib/redmine_gitolite/hooks.rb

+9-9
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,15 @@ def install_hook_file(hook_data)
262262
end
263263

264264

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+
end
272+
273+
265274
def hook_digest(hook_data)
266275
hook_name = hook_data[:source]
267276
source_path = File.join(PACKAGE_HOOKS_DIR, hook_data[:source])
@@ -283,15 +292,6 @@ def update_gitolite
283292
end
284293

285294

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
292-
end
293-
294-
295295
###############################
296296
## ##
297297
## GIT PARAMS ##

0 commit comments

Comments
 (0)