diff --git a/var/spack/repos/builtin/packages/git/package.py b/var/spack/repos/builtin/packages/git/package.py index f0f3bfc6ba..24657e54dc 100644 --- a/var/spack/repos/builtin/packages/git/package.py +++ b/var/spack/repos/builtin/packages/git/package.py @@ -24,6 +24,7 @@ ############################################################################## import sys from spack import * +from distutils.dir_util import copy_tree class Git(AutotoolsPackage): @@ -166,6 +167,10 @@ def filter_rt(self): # Don't link with -lrt; the system has no (and needs no) librt filter_file(r' -lrt$', '', 'Makefile') + @run_after('install') + def install_completions(self): + copy_tree('contrib/completion', self.prefix.share) + @run_after('install') def install_manpages(self): prefix = self.prefix