Skip to content

Commit 330a177

Browse files
author
Nicolas
committed
Merge pull request #39 from baby-gnu/hotfix/no-gitolite-version-when-no-pty
Unable to find gitolite version when PTY allocation is denied
2 parents ac96ab7 + a6ab979 commit 330a177

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/libs/git_hosting.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def self.file_exists?(filename)
229229

230230

231231
def self.gitolite_version
232-
stdin, stdout, stderr = Open3.popen3("#{GitHosting.gitolite_ssh} #{GitHosting.git_user}@localhost")
232+
stdin, stdout, stderr = Open3.popen3("#{GitHosting.gitolite_ssh} #{GitHosting.git_user}@localhost info")
233233

234234
if !stderr.readlines.blank?
235235
return -1
@@ -249,7 +249,7 @@ def self.gitolite_version
249249

250250

251251
def self.gitolite_version_output
252-
stdin, stdout, stderr = Open3.popen3("#{GitHosting.gitolite_ssh} #{GitHosting.git_user}@localhost")
252+
stdin, stdout, stderr = Open3.popen3("#{GitHosting.gitolite_ssh} #{GitHosting.git_user}@localhost info")
253253

254254
errors = stderr.readlines
255255
if !errors.blank?

0 commit comments

Comments
 (0)