summaryrefslogtreecommitdiffstats
path: root/vendor/code.gitea.io/git/git.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/code.gitea.io/git/git.go')
-rw-r--r--vendor/code.gitea.io/git/git.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/vendor/code.gitea.io/git/git.go b/vendor/code.gitea.io/git/git.go
index 71a9a37f42..2cea1dc1d5 100644
--- a/vendor/code.gitea.io/git/git.go
+++ b/vendor/code.gitea.io/git/git.go
@@ -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