Unnamed repos now have a better unnamed default, thanks to Khisanth for the suggestion.
Dan Brook [Sat, 23 Jan 2010 09:07:00 +0000 (16:07 +0700)]
A simple change to the description property of the Repository object.
Additionally RT#52948 can be resolved.

lib/Gitalist/Git/Repository.pm

index eaefb94..1cb6ba7 100644 (file)
@@ -237,6 +237,8 @@ class Gitalist::Git::Repository with Gitalist::Git::HasUtils {
             $description = $self->path->file('description')->slurp;
             chomp $description;
         };
+       $description = "Unnamed repository, edit the .git/description file to set a description"
+           if $description eq "Unnamed repository; edit this file 'description' to name the repository.";
         return $description;
     }