Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit539980d

Browse files
committed
Merge branch 'T0MASD-add_ssh_script_syntax'
2 parents1485103 +bafb4cc commit539980d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎doc/source/tutorial.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,14 @@ This one sets a custom script to be executed in place of `ssh`, and can be used
343343
with repo.git.custom_environment(GIT_SSH=ssh_executable):
344344
repo.remotes.origin.fetch()
345345

346+
Here's an example executable that can be used in place of the `ssh_executable` above::
347+
348+
#!/bin/sh
349+
ID_RSA=/var/lib/openshift/5562b947ecdd5ce939000038/app-deployments/id_rsa
350+
exec /usr/bin/ssh -o StrictHostKeyChecking=no -i $ID_RSA "$@"
351+
352+
Please note that the script must be executable (i.e. `chomd +x script.sh`). `StrictHostKeyChecking=no` is used to avoid prompts asking to save the hosts key to `~/.ssh/known_hosts`, which happens in case you run this as daemon.
353+
346354
You might also have a look at `Git.update_environment(...)` in case you want to setup a changed environment more permanently.
347355

348356
Submodule Handling

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp