Skip to content

Commit 66b31c0

Browse files
committed
update comment
1 parent 4cdd864 commit 66b31c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/mirror/helper.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func runGitCommand(ctx context.Context, log *slog.Logger, envs []string, cwd str
200200
log.Log(ctx, -8, "running command", "cwd", cwd, "cmd", cmdStr)
201201

202202
cmd := exec.CommandContext(ctx, gitExecutablePath, args...)
203-
// force kill git 5 seconds after sending it sigterm
203+
// force kill git & child process 5 seconds after sending it sigterm (when ctx is cancelled/timed out)
204204
cmd.WaitDelay = 5 * time.Second
205205
if cwd != "" {
206206
cmd.Dir = cwd

0 commit comments

Comments
 (0)