diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-06-20 21:57:37 -0500 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-07-05 18:03:29 -0500 |
commit | fd41b8a433164f36f7cf70b358115c5f56f06670 (patch) | |
tree | c5bf7d25769590aca26dba99626a6c51ef498508 /lib/gitlab_shell.rb | |
parent | 1c18095c9f2b80d380122c8c71f98a07387c1e66 (diff) | |
download | gitlab-shell-fd41b8a433164f36f7cf70b358115c5f56f06670.tar.gz |
Simplify protocol assign, and populate ENV['PROTOCOL'] variable when calling hooks via SSH
Diffstat (limited to 'lib/gitlab_shell.rb')
-rw-r--r-- | lib/gitlab_shell.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb index 2bb8a4d..3dc10b6 100644 --- a/lib/gitlab_shell.rb +++ b/lib/gitlab_shell.rb @@ -131,7 +131,8 @@ class GitlabShell 'PATH' => ENV['PATH'], 'LD_LIBRARY_PATH' => ENV['LD_LIBRARY_PATH'], 'LANG' => ENV['LANG'], - 'GL_ID' => @key_id + 'GL_ID' => @key_id, + 'PROTOCOL' => 'ssh' } if @config.git_annex_enabled? |