1
0
mirror of https://github.com/go-gitea/git.git synced 2026-02-05 15:45:40 +01:00

fix compile error

This commit is contained in:
Unknwon
2016-01-28 11:09:33 -05:00
parent f354a82512
commit 3c8c495f30

2
git.go
View File

@@ -73,7 +73,7 @@ func init() {
func Fsck(repoPath string, timeout time.Duration, args ...string) error {
// Make sure timeout makes sense.
if timeout <= 0 {
timeout == -1
timeout = -1
}
_, err := NewCommand("fsck").AddArguments(args...).RunInDirTimeout(timeout, repoPath)
return err