Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#7 .description file_get_contents problem

v1.0_(example)
open
nobody
None
5
2012-01-24
2012-01-23
Michel Wilhelm
No

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';
}

Discussion

  • Hello Michel,

    How old are these git repositories? Do you have any ideas how your repository ended up without description?

     
  • Michel Wilhelm
    Michel Wilhelm
    2012-01-24

    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?

     
  • Michel Wilhelm
    Michel Wilhelm
    2012-01-24

    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.

     
    • status: open --> closed-fixed
     
  • Michel Wilhelm
    Michel Wilhelm
    2012-01-24

    Thanks, pulling here.

     
  • Michel Wilhelm
    Michel Wilhelm
    2012-01-24

    • status: closed-fixed --> open