Skip to content

Commit d543279

Browse files
author
root
committed
Don't use our ssh server port for mirroring...
1 parent b87cb22 commit d543279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redmine_gitolite/config.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ def self.mirroring_keys_installed?(opts = {})
668668

669669
git_user_dir = RedmineGitolite::GitHosting.execute_command(:shell_cmd, "'cd ~ && pwd'").chomp.strip
670670

671-
command = 'exec ssh -T -o BatchMode=yes -o StrictHostKeyChecking=no -p ' + "#{gitolite_server_port}" + ' -i ' + "#{git_user_dir}/.ssh/#{GITOLITE_MIRRORING_KEYS_NAME}" + ' "$@"'
671+
command = 'exec ssh -T -o BatchMode=yes -o StrictHostKeyChecking=no -i ' + "#{git_user_dir}/.ssh/#{GITOLITE_MIRRORING_KEYS_NAME}" + ' "$@"'
672672

673673
RedmineGitolite::GitHosting.execute_command(:shell_cmd, "'cat > #{GITOLITE_MIRRORING_SCRIPT_PATH}'", :pipe_data => "#!/bin/sh", :pipe_command => 'echo')
674674
RedmineGitolite::GitHosting.execute_command(:shell_cmd, "'cat >> #{GITOLITE_MIRRORING_SCRIPT_PATH}'", :pipe_data => command, :pipe_command => 'echo')

0 commit comments

Comments
 (0)