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:
parent
1e7f37a886
commit
925fa0dc67
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user