Browse Source

Added user debug message

pull/24/head
Teknikode 8 years ago
parent
commit
15738dfe72
  1. 9
      includes/update_profile.php

9
includes/update_profile.php

@ -134,8 +134,13 @@ if(isset($_POST)) @@ -134,8 +134,13 @@ if(isset($_POST))
$Git = new Git();
$Git->windows_mode();
$repo = $Git->open($CONF['git_repo_path'][0].'gitolite-admin\\');
$repo->setenv("HOME", "/home/git");
echo get_current_user();
echo "File Owner: ".get_current_user()."<br />";
$processUser = posix_getpwuid(posix_geteuid());
echo "username: ".$processUser['name']."<br />";
echo "uid: ".getmyuid()."<br />";
echo "gid: ".getmygid()."<br />";
echo "pid: ".getmypid()."<br />";
$repo->pull('origin', 'master');
if (is_dir($CONF['git_repo_path'][0].'gitolite-admin\\keydir\\u\\'.$user->username))

Loading…
Cancel
Save