Skip to content

Commit

Permalink
get git logs
Browse files Browse the repository at this point in the history
  • Loading branch information
niltor committed Apr 1, 2024
1 parent e31d8ac commit 18fe45a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Lib/BuildSite/HtmlBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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" };
Expand Down

0 comments on commit 18fe45a

Please sign in to comment.