From 06b5c66eccbb75f0d20f2d920487ef440ccc3e62 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 13 Feb 2025 10:33:17 +0800 Subject: [PATCH] repo_commit: fake_diff_file_null has zero hash --- http_handle_repo_commit.go | 2 +- diff --git a/http_handle_repo_commit.go b/http_handle_repo_commit.go index fe65756390b8d1ec1991a0f935cd36c67f5baa76..25f1331eb658090a810a2e61865a9e64cdb95a19 100644 --- a/http_handle_repo_commit.go +++ b/http_handle_repo_commit.go @@ -105,7 +105,7 @@ return f.path } var fake_diff_file_null = fake_diff_file{ - hash: plumbing.NewHash("e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"), + hash: plumbing.NewHash("0000000000000000000000000000000000000000"), mode: misc.First_or_panic(filemode.New("100644")), path: "", } -- 2.48.1