Skip to content

Commit

Permalink
Merge pull request #2127 from CortexFoundation/dev
Browse files Browse the repository at this point in the history
internal/build: include git-date on detached head
  • Loading branch information
ucwong authored Aug 24, 2024
2 parents e3adb06 + 6b509b1 commit 006b940
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/build/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,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
}
Expand Down

0 comments on commit 006b940

Please sign in to comment.