WIP, nae nae

This commit is contained in:
AJ ONeal 2019-06-20 21:19:15 -06:00
parent 925fa0dc67
commit beaf3de730
1 changed files with 7 additions and 1 deletions

View File

@ -142,7 +142,13 @@ func semVer(desc string) string {
}
func gitTimestamp(desc string) (time.Time, error) {
args := strings.Split(fmt.Sprintf("git show %s --format=%%cd --date=format:%%Y-%%m-%%dT%%H:%%M:%%SZ%%z --no-patch", desc), " ")
args := []string{
"git",
"show", desc,
"--format=%cd",
"--date=format:%Y-%m-%dT%H:%M:%SZ%z",
"--no-patch",
}
cmd := exec.Command(args[0], args[1:]...)
out, err := cmd.CombinedOutput()
fmt.Printf("args:\n%#v\n\n", args)