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:
2
git.go
2
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
|
||||
|
||||
Reference in New Issue
Block a user