2
0
mirror of https://github.com/therootcompany/go-gitver.git synced 2025-02-22 14:48:04 +00:00

WIP, nae nae

This commit is contained in:
AJ ONeal 2019-06-20 21:06:45 -06:00
parent 60debf802f
commit 41361316a9

View File

@ -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='format:%%cI' --no-patch", desc), " ")
args := strings.Split(fmt.Sprintf("git show %s --format='%%cI' --no-patch", desc), " ")
cmd := exec.Command(args[0], args[1:]...)
out, err := cmd.CombinedOutput()
fmt.Printf("foo:\n%#v\n", args)