Skip to content

Commit

Permalink
test git fetch unshallow
Browse files Browse the repository at this point in the history
  • Loading branch information
niltor committed Apr 1, 2024
1 parent 18fe45a commit 7ed1b95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Lib/BuildSite/HtmlBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public void BuildData()
}

// 获取git历史信息
ProcessHelper.RunCommand("git", "fetch --depth=1000", out string _);
ProcessHelper.RunCommand("git", "fetch --unshallow", out string _);

// blogs
var rootCatalog = new Catalog { Name = "Root" };
Expand Down Expand Up @@ -258,7 +258,6 @@ private string AddHtmlTags(string content, string title = "", string toc = "")
{
if (ProcessHelper.RunCommand("git", @$"log --diff-filter=A --format=%aI -- ""{path}""", out string output))
{
Console.WriteLine(output);
output = output.Split("\n").First();
return ConvertToDateTimeOffset(output);
}
Expand Down

0 comments on commit 7ed1b95

Please sign in to comment.