| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -343,6 +343,14 @@ This one sets a custom script to be executed in place of `ssh`, and can be used | |||
| 343 | 343 | with repo.git.custom_environment(GIT_SSH=ssh_executable): | |
| 344 | 344 | repo.remotes.origin.fetch() | |
| 345 | 345 | ||
| 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 | + | ||
| 346 | 354 | You might also have a look at `Git.update_environment(...)` in case you want to setup a changed environment more permanently. | |
| 347 | 355 | ||
| 348 | 356 | Submodule Handling | |
| Back | FazBrowse Home | New Git URL |
0 commit comments