Sorry - I should've included that
it's the first line in this section (i.e. if !configuration["real_path"] ||
configuration["real_path"] == "nil"):
def real_path
if !configuration["real_path"] || configuration["real_path"] ==
"nil"
raise AccessDeniedError
end
full_real_path = File.join(GitoriousConfig["repository_base_path"],
configuration["real_path"])
raise AccessDeniedError unless File.exist?(full_real_path)
full_real_path
end
and 72 is the only line in this section (i.e. "#{@strainer.verb}
'#{real_path}'") :
def to_git_shell_argument
"#{@strainer.verb} '#{real_path}'"
end
Cheers,
Shane
On Wednesday, 25 May 2011 14:29:45 UTC+1, Marius Mårnes Mathiesen wrote:
>
> On Wed, May 25, 2011 at 12:25 PM, ShaneOG <[email protected]> wrote:
>
>> Thanks Marius,
>>
>> I've made those changes and tried a push.
>>
>> I received this on my local terminal:
>> $ git push
>> warning: peer certificate won't be verified in this SSL session
>>
>> == Gitorious: ==========================================================
>> fatal error
>> ========================================================================
>>
>> fatal: The remote end hung up unexpectedly
>>
>>
>> And this appeared in the gitorious_auth.log
>>
>> FATAL -- : NoMethodError undefined method `body' for
>> #<String:0x7ff3aa2643a0>:
>> /var/www/gitorious/script/../lib/gitorious/ssh/client.rb:87:in
>> `configuration'
>> /var/www/gitorious/script/../lib/gitorious/ssh/client.rb:58:in
>> `real_path'
>> /var/www/gitorious/script/../lib/gitorious/ssh/client.rb:72:in
>> `to_git_shell_argument'
>> /var/www/gitorious/script/gitorious:63
>>
>
> Okay, what is at line 58 in your ssh/client.rb ?
>
> Cheers,
> - Marius
>
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]