Browse Source

fixed dir checking

pull/24/head
Teknikode 8 years ago
parent
commit
39766e34d7
  1. 4
      includes/update_profile.php

4
includes/update_profile.php

@ -138,10 +138,10 @@ if(isset($_POST)) @@ -138,10 +138,10 @@ if(isset($_POST))
$repo->fetch();
$repo->run('reset --hard origin/master');
$dir = $CONF['git_repo_path'][0].'gitolite-admin\\keydir\\u\\'.$user->username.'\\*';
$dir = $CONF['git_repo_path'][0].'gitolite-admin\\keydir\\u\\'.$user->username.'\\';
if (is_dir($dir))
{
foreach (glob($dir) as $filename)
foreach (glob($dir."*") as $filename)
{
if (is_file($filename))
{

Loading…
Cancel
Save