.description file_get_contents problem
Status: Beta
Brought to you by:
hoxu
I have a problem with projects with non exists the .git/description file.
I patched localy with these updates on inc/functions.php
line 66. $info['description'] = file_get_contents($info['repo'] .'/description');
to
if( file_exists( $info['repo'] .'/description' ) ) {
$info['description'] = file_get_contents($info['repo'] .'/description');
} else {
$info['description'] = 'No description';
}
Hello Michel,
How old are these git repositories? Do you have any ideas how your repository ended up without description?
Hi, i'm intializing the repo on server with these commands:
$ mkdir repo.git
$ git init --bare repo.git
and the git repo initialize with empty files, no have .gitignore or description.
Interesting. What does "git --version" say?
Server: git version 1.7.7.1 (runs viewgit)
Client 1: git version 1.7.5.4
Client 2: git version 1.7.5.4
All runs on Ubuntu
Ok, thanks for the report and information. I can not reproduce this on git 1.7.2.5 or 1.7.8.247.g10f4e, but fixed in this commit anyway: 2e8345e04174956579f7e96a13ff2afd965e1620.
Thanks, pulling here.