Skip to content

Commit 05f5eb0

Browse files
author
Gusted
committed
Actually update it
1 parent 23ec50e commit 05f5eb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/mirror/mirror_push.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func runPushSync(ctx context.Context, m *repo_model.PushMirror) error {
176176
return errors.New("unexpected error")
177177
}
178178

179-
initArgs = append(initArgs, "-c", "core.sshcommand=ssh", "-i", f.Name(), "-o", "IdentitiesOnly=yes", "-o", "UserKnownHostsFile=/dev/null", "-o", "StrictHostKeyChecking=no")
179+
initArgs = append(initArgs, "-c", fmt.Sprintf("core.sshcommand=ssh -i %q -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no", f.Name()))
180180
}
181181
if err := git.Push(ctx, path, git.PushOptions{
182182
Remote: m.RemoteName,

0 commit comments

Comments
 (0)