You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The behaviour change between ShellRedirector.execute and AbstractAdapter.shellout:
if !git_cache_id.nil? && git_cache_enabled? && !bypass_cache
RedmineGitHosting::ShellRedirector.execute(cmd_str, git_cache_id, options, &block)
else
Redmine::Scm::Adapters::AbstractAdapter.shellout(cmd_str, options, &block)
end
The method ShellRedirector.execute will check for the exit code, but AbstractAdapter.shellout not. It's then impossible to extend the adapter and use the Git status code.
Redmine's Git adapter also check the status code that way:
def git_cmd(args, options = {}, &block)
# ...
ret = shellout(
self.class.sq_bin + ' ' + full_args.map { |e| shell_quote e.to_s }.join(' '),
options,
&block
)
if $? && $?.exitstatus != 0
raise ScmCommandAborted, "git exited with non-zero status: #{$?.exitstatus}"
end
ret
end
The text was updated successfully, but these errors were encountered:
The behaviour change between
ShellRedirector.execute
andAbstractAdapter.shellout
:The method
ShellRedirector.execute
will check for the exit code, butAbstractAdapter.shellout
not. It's then impossible to extend the adapter and use the Git status code.Redmine's Git adapter also check the status code that way:
The text was updated successfully, but these errors were encountered: