From 3c8c495f30ffbdc44f1b4869fdfa6776e6967f1f Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 28 Jan 2016 11:09:33 -0500 Subject: [PATCH] fix compile error --- git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git.go b/git.go index f85c2ce..e70bad9 100644 --- a/git.go +++ b/git.go @@ -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