|
|
@@ -74,7 +74,8 @@ public class GitImpl implements CodeUpdater {
|
|
|
try (Repository repo = new FileRepository(localRepo.getAbsolutePath())) {
|
|
|
PullCommand gitPull = new Git(repo)
|
|
|
.pull()
|
|
|
- .setTimeout(600)
|
|
|
+ // 超时 60s
|
|
|
+ .setTimeout(60)
|
|
|
.setFastForward(MergeCommand.FastForwardMode.FF);
|
|
|
if (sshSessionFactory != null) {
|
|
|
gitPull.setTransportConfigCallback(transport -> {
|