]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Support copying git submodule files 232/head
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 8 Feb 2018 00:23:30 +0000 (16:23 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 8 Feb 2018 00:23:30 +0000 (16:23 -0800)
commit9dd3bc1e0fe5c6cef0396620c1dc304294629fb1
treea9dd7a8760c7993e68d2feba20bb5ff3a5f90809
parentde56894e18d67873d9d33831be09c564348644b1
Support copying git submodule files

Besides getting the files from the git directory, iterate through each
submodules to copy them over to the build image as well. We had some
(better) alternative, but each of them failing to provide what we need:

    - Recent versions for git-ls-files learned a --recurse-submodules
      but they are not support together with --others

    - git-submodule foreach --recursive would allow us to git-ls-files
      inside each submodule, however there's no easy way to control from
      which submodule the command is printing the files in order to
      prepend the submodule path

So for now we live with getting the list of submodules from
`git submodule status --recursive` and calling git-ls-files on each of
them.
mkosi