Skip to content

Instantly share code, notes, and snippets.

@JEEN
Created October 12, 2010 05:54
Show Gist options
  • Save JEEN/621724 to your computer and use it in GitHub Desktop.
Save JEEN/621724 to your computer and use it in GitHub Desktop.
diff --git a/lib/Gitalist/Git/Repository.pm b/lib/Gitalist/Git/Repository.pm
index bcb36fa..962466e 100644
--- a/lib/Gitalist/Git/Repository.pm
+++ b/lib/Gitalist/Git/Repository.pm
@@ -230,7 +230,7 @@ class Gitalist::Git::Repository with Gitalist::Git::HasUtils {
method _build_description {
my $description = "";
eval {
- $description = $self->path->file('description')->slurp;
+ $description = $self->path->file('description')->slurp( iomode => '<:encoding(utf8)' );
chomp $description;
};
$description = "Unnamed repository, edit the .git/description file to set a description"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment