We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1193908 commit f354a82Copy full SHA for f354a82
git.go
@@ -10,7 +10,7 @@ import (
10
"time"
11
)
12
13
-const _VERSION = "0.2.3"
+const _VERSION = "0.2.4"
14
15
func Version() string {
16
return _VERSION
@@ -71,6 +71,10 @@ func init() {
71
72
// Fsck verifies the connectivity and validity of the objects in the database
73
func Fsck(repoPath string, timeout time.Duration, args ...string) error {
74
+ // Make sure timeout makes sense.
75
+ if timeout <= 0 {
76
+ timeout == -1
77
+ }
78
_, err := NewCommand("fsck").AddArguments(args...).RunInDirTimeout(timeout, repoPath)
79
return err
80
}
0 commit comments