mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 09:23:48 +00:00
cmd/utils/flags.go: Applying a String len guard for the gitCommit param of the NewApp()
This commit is contained in:
parent
908faf8cd7
commit
89be5f76f8
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ func NewApp(gitCommit, usage string) *cli.App {
|
|||
//app.Authors = nil
|
||||
app.Email = ""
|
||||
app.Version = params.Version
|
||||
if gitCommit != "" {
|
||||
if gitCommit != "" && len(gitCommit) >= 8 {
|
||||
app.Version += "-" + gitCommit[:8]
|
||||
}
|
||||
app.Usage = usage
|
||||
|
|
|
|||
Loading…
Reference in a new issue