From 5684f0b9295c7ac603771b6f1e76b3a9022f1b9e Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 20 Jun 2019 21:13:35 -0600 Subject: [PATCH] WIP, nae nae --- gitver.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gitver.go b/gitver.go index f295b7b..f27ef78 100644 --- a/gitver.go +++ b/gitver.go @@ -142,7 +142,8 @@ 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='%%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("foo:\n%#v\n", args)