|
@@ -22,6 +22,8 @@ import (
|
22
|
22
|
"golang.org/x/crypto/ssh/terminal"
|
23
|
23
|
)
|
24
|
24
|
|
|
25
|
+var commit = ""
|
|
26
|
+
|
25
|
27
|
func main() {
|
26
|
28
|
version := irc.SemVer
|
27
|
29
|
usage := `oragono.
|
|
@@ -98,6 +100,17 @@ Options:
|
98
|
100
|
rand.Seed(time.Now().UTC().UnixNano())
|
99
|
101
|
if !arguments["--quiet"].(bool) {
|
100
|
102
|
logman.Info("startup", fmt.Sprintf("Oragono v%s starting", irc.SemVer))
|
|
103
|
+ if commit == "" {
|
|
104
|
+ logman.Debug("startup", fmt.Sprintf("Could not get current commit"))
|
|
105
|
+ } else {
|
|
106
|
+ logman.Info("startup", fmt.Sprintf("Running commit %s", commit))
|
|
107
|
+ }
|
|
108
|
+ }
|
|
109
|
+
|
|
110
|
+ // set current git commit
|
|
111
|
+ irc.Commit = commit
|
|
112
|
+ if commit != "" {
|
|
113
|
+ irc.Ver = fmt.Sprintf("%s-%s", irc.Ver, commit)
|
101
|
114
|
}
|
102
|
115
|
|
103
|
116
|
// profiling
|