mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
internal/build: include git-date on detached head
This commit is contained in:
parent
710c3f32ac
commit
0e6066ee17
1 changed files with 1 additions and 0 deletions
|
|
@ -111,6 +111,7 @@ func LocalEnv() Environment {
|
|||
commitRe, _ := regexp.Compile("^([0-9a-f]{40})$")
|
||||
if commit := commitRe.FindString(head); commit != "" && env.Commit == "" {
|
||||
env.Commit = commit
|
||||
env.Date = getDate(env.Commit)
|
||||
}
|
||||
return env
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue