aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/repository/repo.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/repository/repo.go b/modules/repository/repo.go
index de6de3bda4..51e1699821 100644
--- a/modules/repository/repo.go
+++ b/modules/repository/repo.go
@@ -6,6 +6,7 @@ package repository
import (
"context"
+ "errors"
"fmt"
"io"
"net/http"
@@ -79,6 +80,9 @@ func MigrateRepositoryGitData(ctx context.Context, u *user_model.User,
Timeout: migrateTimeout,
SkipTLSVerify: setting.Migrations.SkipTLSVerify,
}); err != nil {
+ if errors.Is(err, context.DeadlineExceeded) {
+ return repo, fmt.Errorf("Clone timed out. Consider increasing [git.timeout] MIGRATE in app.ini. Underlying Error: %w", err)
+ }
return repo, fmt.Errorf("Clone: %w", err)
}