Skip to content

Commit 8a81ac2

Browse files
author
root
committed
Rescue from Rugged::NetworkError (this mean that access is denied for this SSH key)
1 parent c474f90 commit 8a81ac2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: lib/redmine_git_hosting/gitolite_wrapper.rb

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ def resync_gitolite(action, object, options = {})
3838
begin
3939
admin = gitolite_admin
4040
rescue Rugged::SshError => e
41+
logger.error "Invalid Gitolite Admin SSH Keys"
42+
logger.error(e.message)
43+
rescue Rugged::NetworkError => e
44+
logger.error "Access denied for Gitolite Admin SSH Keys"
4145
logger.error(e.message)
4246
else
4347
begin

0 commit comments

Comments
 (0)