Skip to content

Commit e700432

Browse files
mnenciaroot
authored and
root
committed
In case of git command failure, log the actual command line
1 parent d2e802d commit e700432

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/redmine_git_hosting/shell_redirector.rb

+2-2
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)