From 4394a88c4584798fa65474c0f3c60874525ace06 Mon Sep 17 00:00:00 2001 From: Marco Nenciarini Date: Wed, 24 Jun 2015 14:18:15 +0200 Subject: [PATCH] In case of git command failure, log the actual command line --- lib/redmine_git_hosting/shell_redirector.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/redmine_git_hosting/shell_redirector.rb b/lib/redmine_git_hosting/shell_redirector.rb index 56595f7a6..c42564288 100644 --- a/lib/redmine_git_hosting/shell_redirector.rb +++ b/lib/redmine_git_hosting/shell_redirector.rb @@ -48,8 +48,8 @@ def execute(cmd_str, repo_id, options = {}, &block) end if status && status.exitstatus.to_i != 0 - logger.error("Git exited with non-zero status : #{status.exitstatus}") - raise Redmine::Scm::Adapters::XitoliteAdapter::ScmCommandAborted, "Git exited with non-zero status : #{status.exitstatus}" + logger.error("Git exited with non-zero status : #{status.exitstatus} : #{cmd_str}") + raise Redmine::Scm::Adapters::XitoliteAdapter::ScmCommandAborted, "Git exited with non-zero status : #{status.exitstatus} : #{cmd_str}" end return retio