mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-04 22:20:20 +09:00
Return 0.0.0-unknown version if building without a git repo
This commit is contained in:
@@ -32,7 +32,7 @@ func main() {
|
||||
version, err := semver.ParseTolerant(versionStr)
|
||||
if err != nil {
|
||||
// no version tag found so just return what ever we can find.
|
||||
fmt.Println(getTag())
|
||||
fmt.Println("0.0.0-unknown")
|
||||
return
|
||||
}
|
||||
// Get the tag of the current revision.
|
||||
|
||||
Reference in New Issue
Block a user