beber pushed a commit to branch master.

http://git.enlightenment.org/website/www.git/commit/?id=7f3123dc83520909314fcea1342cf5e0bb2d5b04

commit 7f3123dc83520909314fcea1342cf5e0bb2d5b04
Author: Bertrand Jacquin <bertr...@jacquin.bzh>
Date:   Tue Apr 14 01:50:05 2015 +0100

    MEDIUM: gitbacked: Use ssh-agent
---
 .gitignore                                         | 3 +++
 public_html/lib/plugins/gitbacked/conf/default.php | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/.gitignore b/.gitignore
index 15e66ed..31ae363 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,3 +21,6 @@ public_html/ss/tmp
 # Logs
 logs/e17-clients
 logs/e17-updates
+
+# SSH
+.ssh
diff --git a/public_html/lib/plugins/gitbacked/conf/default.php 
b/public_html/lib/plugins/gitbacked/conf/default.php
index 8bd3bb9..dbaf11c 100644
--- a/public_html/lib/plugins/gitbacked/conf/default.php
+++ b/public_html/lib/plugins/gitbacked/conf/default.php
@@ -30,3 +30,7 @@ if (isset($GLOBALS['USERINFO']['mail'])) {
 
 putenv("GIT_AUTHOR_NAME='$_git_auhor_name'");
 putenv("GIT_AUTHOR_EMAIL='$_git_auhor_mail'");
+
+/* Env for git+ssh */
+putenv("HOME=" . dirname($_SERVER['DOCUMENT_ROOT']));
+putenv("SSH_AUTH_SOCK=" . dirname($_SERVER['DOCUMENT_ROOT']) . "/.ssh/agent");

-- 


Reply via email to