From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Boeckel Date: Wed, 6 Jul 2016 01:04:28 +0000 (UTC) Subject: [Buildroot] [PATCH 2/4 v3] support/download/git: do not use git archive, handle it manually References: <878txk55or.fsf@dell.be.48ers.dk> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On Sat, 02 Jul, 2016 at 17:08:04 GMT, Peter Korsgaard wrote: > I've wondered if it wouldn't have been simpler to keep git archive and > then just append the git-archive output of the individual submodules > (like we do for the generated documentation in make release) with git > submodule foreach, E.G: > > https://ttboj.wordpress.com/2015/07/23/git-archive-with-submodules-and-tar-magic/ > > Something like: > > git archive --prefix=foo/ ... > $TAR > git submodule foreach --recursive \ > 'git archive --prefix=foo/$path/ $sha1 > $TAR.tmp && tar Af $TAR $TAR.tmp' > rm $TAR.tmp > > But we can do that later if needed. Here's another approach: https://gitlab.kitware.com/paraview/paraview/blob/master/Utilities/Maintenance/create_tarballs.bash#L176 You set up a custom index file and then use `read-tree -i` to read in the submodules. IMO, using `git archive` should be a requirement because of export-subst attributes which cause `$Format:$` bits to be replaced in the archived files. --Ben