about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-05-31 23:09:03 +0000
committerEric Wong <e@yhbt.net>2020-06-03 04:04:04 +0000
commit01574fe596bceae54f8ead45991b9ac4fe35ea10 (patch)
tree10acc7fe61e3c1e6f424f256d34e42253f0da60e /lib
parenta73957b5b05f2a00f7a85353b1658b6d8cde05ae (diff)
downloadpublic-inbox-01574fe596bceae54f8ead45991b9ac4fe35ea10.tar.gz
Assisted by commit a73957b5b05f2a00f7a85353b1658b6d8cde05ae
("testcommon: speed up wait_for_tail() on GNU/Linux")

Fixes: 846161e3d1207d59 ("treat $INBOX_DIR/description and gitweb.owner as UTF-8")
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/WwwListing.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/WwwListing.pm b/lib/PublicInbox/WwwListing.pm
index a416d24f..a3d4e2b3 100644
--- a/lib/PublicInbox/WwwListing.pm
+++ b/lib/PublicInbox/WwwListing.pm
@@ -157,10 +157,10 @@ sub manifest_add ($$;$$) {
 
         chomp(my $owner = $git->qx('config', 'gitweb.owner'));
         chomp(my $desc = try_cat("$git_dir/description"));
+        utf8::decode($owner);
+        utf8::decode($desc);
         $owner = undef if $owner eq '';
         $desc = 'Unnamed repository' if $desc eq '';
-        utf8::decode($desc);
-        utf8::decode($owner);
 
         # templates/hooks--update.sample and git-multimail in git.git
         # only match "Unnamed repository", not the full contents of