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 ⇒ Object
14 15 16 17 18 19 |
# File 'lib/redmine_with_git/patches/redmine_git_hosting/commands/git/git_patch.rb', line 14 def git_version sudo_git('--version') rescue RedmineGitHosting::Error::GitoliteCommandException => e logger.error("Can't retrieve Git version: #{e.output}") 'unknown' end |