You've already forked agentic-coding-workflow
git 逻辑
This commit is contained in:
+5
-1
@@ -803,7 +803,11 @@ func (a workspaceFetcherAdapter) Fetch(ctx context.Context, mainPath string, wsI
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return a.gitr.Fetch(ctx, mainPath, cred)
|
||||
// 后台 fetch 成功后与手动 Sync 一致地把 main 工作区快进到远端
|
||||
if err := a.gitr.Fetch(ctx, mainPath, cred); err != nil {
|
||||
return err
|
||||
}
|
||||
return a.gitr.MergeFFOnly(ctx, mainPath)
|
||||
}
|
||||
|
||||
// projectLookup is the minimal interface needed by worktreePruneAdapter to
|
||||
|
||||
Reference in New Issue
Block a user