Browse Source

added debug message

pull/24/head
Teknikode 8 years ago
parent
commit
1d362b9681
  1. 2
      includes/Git.php
  2. 1
      includes/update_profile.php

2
includes/Git.php

@ -286,7 +286,7 @@ class GitRepo { @@ -286,7 +286,7 @@ class GitRepo {
} else {
$env = array_merge($_ENV, $this->envopts);
}
foreach($env as $val) {
foreach($_ENV as $val) {
echo $val;
}
$cwd = $this->repo_path;

1
includes/update_profile.php

@ -134,6 +134,7 @@ if(isset($_POST)) @@ -134,6 +134,7 @@ if(isset($_POST))
$Git = new Git();
$Git->windows_mode();
$repo = $Git->open($CONF['git_repo_path'][0]."gitolite-admin\\");
$repo->setenv("HOME", "git");
$repo->pull('origin', 'master');
if (is_dir($CONF['git_repo_path'][0]."gitolite-admin\\keydir\\u\\".$user->username))

Loading…
Cancel
Save