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 05d41d5 commit d14b1e8Copy full SHA for d14b1e8
git.go
@@ -7,6 +7,7 @@ package git
7
import (
8
"fmt"
9
"strings"
10
+ "time"
11
)
12
13
var (
@@ -54,3 +55,9 @@ func Version() (string, error) {
54
55
func init() {
56
Version()
57
}
58
+
59
+// Fsck verifies the connectivity and validity of the objects in the database
60
+func Fsck(repoPath string, timeout time.Duration, args ...string) error {
61
+ _, err := NewCommand("fsck").AddArguments(args...).RunInDirTimeout(timeout, repoPath)
62
+ return err
63
+}
0 commit comments