From 18fe45a3894f5b47ebee8f1a64257c37819b43b1 Mon Sep 17 00:00:00 2001 From: niltor Date: Mon, 1 Apr 2024 11:38:16 +0800 Subject: [PATCH] get git logs --- Lib/BuildSite/HtmlBuilder.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Lib/BuildSite/HtmlBuilder.cs b/Lib/BuildSite/HtmlBuilder.cs index bcf16ce..f2d6b8a 100644 --- a/Lib/BuildSite/HtmlBuilder.cs +++ b/Lib/BuildSite/HtmlBuilder.cs @@ -126,9 +126,8 @@ public void BuildData() Console.WriteLine("✅ copy webinfo.json!"); } - ProcessHelper.RunCommand("git", "pull --all", out string _); - ProcessHelper.RunCommand("git", "log -2 ", out string output); - Console.WriteLine("test git:" + output); + // 获取git历史信息 + ProcessHelper.RunCommand("git", "fetch --depth=1000", out string _); // blogs var rootCatalog = new Catalog { Name = "Root" };