Skip to content

Commit

Permalink
发布,看看
Browse files Browse the repository at this point in the history
  • Loading branch information
duolabmeng6 committed Nov 4, 2023
1 parent 236da96 commit e9508e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions citool/gitLogSum/gitLogSum.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
)

func main() {
cmdStr := "sh -c 'git log --pretty=format:\"%an|%s|%h|%ad|%H\" --date=format:\"%Y-%m-%d %H:%M\" $(git describe --tags --abbrev=0)^..HEAD'"
cmd := exec.Command("bash", "-c", cmdStr)
cmdStr := "git log --pretty=format:\"%an|%s|%h|%ad|%H\" --date=format:\"%Y-%m-%d %H:%M\" $(git describe --tags --abbrev=0)^..HEAD"
cmd := exec.Command("sh", "-c", cmdStr)

// 执行命令并返回结果(输出到控制台)
out, err := cmd.CombinedOutput()
Expand Down

0 comments on commit e9508e6

Please sign in to comment.