Skip to content

Use Redmine setting for Git command #348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/redmine_git_hosting/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module Commands


class << self
GIT_BIN = Redmine::Configuration['scm_git_command'] || "git"

# Return only the output of the shell command.
# Throws an exception if the shell command does not exit with code 0.
Expand Down Expand Up @@ -140,7 +141,7 @@ def sudo_shell_params
# Return the Git command with prepend args (mainly env vars like FOO=BAR git push).
#
def git(args = [])
[*args, 'git']
[*args, GIT_BIN]
end


Expand Down