mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
update code.gitea.io/git (#450)
This commit is contained in:
committed by
Thomas Boerger
parent
0c5c34d7dd
commit
47a7529d96
10
vendor/code.gitea.io/git/git.go
generated
vendored
10
vendor/code.gitea.io/git/git.go
generated
vendored
@ -10,16 +10,16 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
const _VERSION = "0.4.2"
|
||||
|
||||
// Version return this package's current version
|
||||
func Version() string {
|
||||
return _VERSION
|
||||
return "0.4.2"
|
||||
}
|
||||
|
||||
var (
|
||||
// Debug enables verbose logging on everything.
|
||||
// This should be false in case Gogs starts in SSH mode.
|
||||
Debug = false
|
||||
Debug = false
|
||||
// Prefix the log prefix
|
||||
Prefix = "[git-module] "
|
||||
)
|
||||
|
||||
@ -38,7 +38,7 @@ func log(format string, args ...interface{}) {
|
||||
|
||||
var gitVersion string
|
||||
|
||||
// Version returns current Git version from shell.
|
||||
// BinVersion returns current Git version from shell.
|
||||
func BinVersion() (string, error) {
|
||||
if len(gitVersion) > 0 {
|
||||
return gitVersion, nil
|
||||
|
Reference in New Issue
Block a user