Module: RedmineWithGit::Patches::RedmineGitHosting::Commands::InstanceMethods

Defined in:
lib/redmine_with_git/patches/redmine_git_hosting/commands/git/git_patch.rb

Instance Method Summary collapse

Instance Method Details

#git_version_with_redmine_with_gitObject



15
16
17
18
19
20
# File 'lib/redmine_with_git/patches/redmine_git_hosting/commands/git/git_patch.rb', line 15

def git_version_with_redmine_with_git
  sudo_git('--version')
rescue RedmineGitHosting::Error::GitoliteCommandException => e
  logger.error("Can't retrieve Git version: #{e.output}")
  'unknown'
end