From 925fa0dc67d85e398b70ae43c7a11182f8b1a293 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 20 Jun 2019 21:17:28 -0600 Subject: [PATCH] WIP, nae nae --- gitver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitver.go b/gitver.go index d3ba004..b22ef67 100644 --- a/gitver.go +++ b/gitver.go @@ -142,7 +142,7 @@ 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 := strings.Split(fmt.Sprintf("git show %s --format=%%cd --date=format:%%Y-%%m-%%dT%%H:%%M:%%SZ%%z --no-patch", desc), " ") cmd := exec.Command(args[0], args[1:]...) out, err := cmd.CombinedOutput() fmt.Printf("args:\n%#v\n\n", args)