mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-10-12 01:58:46 +02:00
Do not include commit hash when releasing tag
This commit is contained in:
1 parent
a9ed70200b
commit
b7ccfcb8b4
1 file changed
+3
@@ -97,6 +97,9 @@ func curVersion() string {
|
||||
if version != "dev" && !strings.HasPrefix(version, "v") {
|
||||
version = "v" + version
|
||||
}
|
||||
if version != "" && version != "dev" {
|
||||
return version
|
||||
}
|
||||
if len(commit) > 7 {
|
||||
commit = commit[:7]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user