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

Appearance settings

Commit bafb4cc

Browse filesBrowse files
committed
docs(tutorial): fix typo, minor improvements
1 parent 1143e1c commit bafb4cc
Copy full SHA for bafb4cc

1 file changed

+2-2Lines changed: 2 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/source/tutorial.rst‎

Copy file name to clipboardExpand all lines: doc/source/tutorial.rst
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -343,13 +343,13 @@ 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 executable used as GIT_SSH::
346+
Here's an example executable that can be used in place of the `ssh_executable` above::
347347

348348
#!/bin/sh
349349
ID_RSA=/var/lib/openshift/5562b947ecdd5ce939000038/app-deployments/id_rsa
350350
exec /usr/bin/ssh -o StrictHostKeyChecking=no -i $ID_RSA "$@"
351351

352-
Please note script must have executable permissions. StrictHostKeyChecking=no is used to avoid prompts asking to save hots key to ~/.ssh/known_hosts (this is in case you run this in some service)
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.
353353

354354
You might also have a look at `Git.update_environment(...)` in case you want to setup a changed environment more permanently.
355355

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.