From cde2f4791c7b356df42dddcb26a4b4085c9e3447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Thu, 25 Feb 2021 20:44:37 +0100 Subject: [PATCH] Revert "Ensure all pushed refs are UTF-8, lest the webapp 500 on reading the repo" This reverts commit 424b962d845f813a187235371a291f34f8c46e13. --- gitsrht-update-hook/update.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gitsrht-update-hook/update.go b/gitsrht-update-hook/update.go index eda7718..72c661a 100644 --- a/gitsrht-update-hook/update.go +++ b/gitsrht-update-hook/update.go @@ -2,10 +2,8 @@ package main import ( "fmt" - "log" "os" "time" - "unicode/utf8" goredis "github.com/go-redis/redis" ) @@ -24,12 +22,6 @@ func update() { } logger.Printf("Running update for push %s", pushUuid) - if !utf8.ValidString(refname) { - logger.Printf("Refusing ref '%s': not UTF-8", refname) - log.Printf("%s not valid UTF-8, see https://github.com/libgit2/pygit2/issues/1028 for more information", refname) - os.Exit(1) - } - redisHost, ok := config.Get("sr.ht", "redis-host") if !ok { redisHost = "redis://localhost:6379" -- 2.38.4