lib/open_project/gitolite/grack/server.rb
def git_command_with_sudo(params)
        if command_require_chdir?(params.last)
          git_command_with_chdir.concat(params)
        else
          git_command_without_chdir.concat(params)
        end
      end
# We sometimes need to add *--git-dir* arg to Git command otherwise
# Git looks for the repository in the current path.
We sometimes need to add *--git-dir* arg to Git command otherwise
Git looks for the repository in the current path.
We sometimes need to add * -- git - dir * arg to Git command otherwise Git looks for the repository in the current path .
def git_command_with_sudo(params)
        if command_require_chdir?(params.last)
          git_command_with_chdir.concat(params)
        else
          git_command_without_chdir.concat(params)
        end
      end
def git_command_with_sudo ( params ) if command_require_chdir? ( params . last ) git_command_with_chdir . concat ( params ) else git_command_without_chdir . concat ( params ) end end
We sometimes need to add *--git-dir* arg to Git command otherwise
Git looks for the repository in the current path.
We sometimes need to add * -- git - dir * arg to Git command otherwise Git looks for the repository in the current path .
params