fixed 代码行统计方式调整

This commit is contained in:
xxq250 2024-06-11 10:58:21 +08:00
parent 749066ec62
commit b2624f6562
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ func GetCodeActivityStatsWithoutSince(repo *gitea_git.Repository, branch string)
if len(branch) == 0 {
gitCmd.AddArguments("--branches=*")
} else {
gitCmd.AddArguments("--first-parent").AddDynamicArguments(branch)
//gitCmd.AddArguments("--first-parent").AddDynamicArguments(branch)
gitCmd.AddArguments("--branches").AddDynamicArguments(branch)
}
stderr := new(strings.Builder)