forked from forgejo/forgejo
update code.gitea.io/git (#450)
This commit is contained in:
parent
0c5c34d7dd
commit
47a7529d96
36 changed files with 509 additions and 480 deletions
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue