diff options
-rw-r--r-- | 900-implements.yarn | 5 | ||||
-rwxr-xr-x | check | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/900-implements.yarn b/900-implements.yarn index 976e0ce..4fae633 100644 --- a/900-implements.yarn +++ b/900-implements.yarn @@ -30,8 +30,11 @@ IMPLEMENTS WHEN user runs Gitano (.*) address = os.environ['ADDRESS'] + sshkey = os.environ['SSH_KEY'] cmd = get_next_match() - argv = ['ssh', 'git@' + address] + cmd.split() + argv = [ + 'ssh', '-oIdentitiesOnly=yes', '-i', sshkey, 'git@' + address + ] + cmd.split() exit, out, err = cliapp.runcmd_unchecked(argv) vars['argv'] = argv vars['exit'] = int(exit) @@ -13,6 +13,7 @@ fi yarn --env "ADDRESS=$address" \ --env "PASSWORD_STORE_DIR=$PASSWORD_STORE_DIR" \ --env "PASS_HOME=$HOME" \ + --env "SSH_KEY=$SSH_KEY" \ --env "SSH_AUTH_SOCK=$SSH_AUTH_SOCK" \ --shell python2 --shell-arg '' --shell-library lib.py \ - pieni.net.yarn 9*.yarn "$@" + "$@" |