Skip to content

Fixed installation of Gitolite3 hooks via moving .chomp into RedmineG… #646

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/redmine_git_hosting/commands/gitolite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def gitolite_infos

def sudo_gitolite_query_rc(param)
begin
sudo_capture('gitolite', 'query-rc', param)
sudo_capture('gitolite', 'query-rc', param).try(:chomp)
rescue RedmineGitHosting::Error::GitoliteCommandException => e
logger.error("Can't retrieve Gitolite param : #{e.output}")
nil
Expand Down
4 changes: 2 additions & 2 deletions lib/redmine_git_hosting/config/gitolite_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ def gitolite_home_dir


def gitolite_bin_dir
@gitolite_bin_dir ||= RedmineGitHosting::Commands.sudo_gitolite_query_rc('GL_BINDIR').try(:chomp)
@gitolite_bin_dir ||= RedmineGitHosting::Commands.sudo_gitolite_query_rc('GL_BINDIR')
end


def gitolite_lib_dir
@gitolite_lib_dir ||= RedmineGitHosting::Commands.sudo_gitolite_query_rc('GL_LIBDIR').try(:chomp)
@gitolite_lib_dir ||= RedmineGitHosting::Commands.sudo_gitolite_query_rc('GL_LIBDIR')
end


Expand Down