From b35b950ee2b767a0fac9ee3afefa62dedeed6cce Mon Sep 17 00:00:00 2001
From: Robert Underwood <robertu94@users.noreply.github.com>
Date: Tue, 4 Aug 2020 10:21:55 -0700
Subject: [PATCH] Add openssh runtime dependency to git (#17872)

If you use git to clone a repository ssh, git transfers control the ssh
binary available on your path, if that ssh binary was built with
contradictory version of openssl/kerberos, then your git commands will
fail.
---
 var/spack/repos/builtin/packages/git/package.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/var/spack/repos/builtin/packages/git/package.py b/var/spack/repos/builtin/packages/git/package.py
index 1094e3373d..ce83cf165e 100644
--- a/var/spack/repos/builtin/packages/git/package.py
+++ b/var/spack/repos/builtin/packages/git/package.py
@@ -193,6 +193,7 @@ class Git(AutotoolsPackage):
     depends_on('pcre2', when='@2.14:')
     depends_on('perl')
     depends_on('zlib')
+    depends_on('openssh', type='run')
 
     depends_on('autoconf', type='build')
     depends_on('automake', type='build')
-- 
GitLab