Skip to content

Commit 4394a88

Browse files
committed
In case of git command failure, log the actual command line
1 parent 9d92250 commit 4394a88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/redmine_git_hosting/shell_redirector.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ def execute(cmd_str, repo_id, options = {}, &block)
4848
end
4949

5050
if status && status.exitstatus.to_i != 0
51-
logger.error("Git exited with non-zero status : #{status.exitstatus}")
52-
raise Redmine::Scm::Adapters::XitoliteAdapter::ScmCommandAborted, "Git exited with non-zero status : #{status.exitstatus}"
51+
logger.error("Git exited with non-zero status : #{status.exitstatus} : #{cmd_str}")
52+
raise Redmine::Scm::Adapters::XitoliteAdapter::ScmCommandAborted, "Git exited with non-zero status : #{status.exitstatus} : #{cmd_str}"
5353
end
5454

5555
return retio

0 commit comments

Comments
 (0)