git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-archive and submodules
@ 2008-03-29 13:47 Whit Armstrong
  2008-03-29 13:52 ` Shawn O. Pearce
  0 siblings, 1 reply; 14+ messages in thread
From: Whit Armstrong @ 2008-03-29 13:47 UTC (permalink / raw)
  To: git

Is there a way to ask git-archive to archive the submodules of the
project as well?

I have a project that needs it's submoduels distributed with it.

Is anyone else using submodules in this way?

my project is: 	git://repo.or.cz/fts.git

It has a submodule: 	tslib at git://repo.or.cz/tslib.git

I create the archive by:
git archive --format=tar --prefix=fts/ HEAD | gzip > ~/fts.tar.gz

and when I go into the tslib submodule directory after expanding the
archive, it is empty.

-Whit

^ permalink raw reply	[flat|nested] 14+ messages in thread
* git-archive and submodules
@ 2009-07-20 16:22 Woody Gilk
  2009-07-20 17:33 ` Avery Pennarun
  2009-07-20 20:56 ` Thomas Rast
  0 siblings, 2 replies; 14+ messages in thread
From: Woody Gilk @ 2009-07-20 16:22 UTC (permalink / raw)
  To: git

(Please note that I am not subscribed to the mailing list, so if you
want me to read your reply, it must be sent to
woody.gilk@kohanaphp.com)

I would find it hugely valuable if git-archive would support
submodules, rather than leaving empty files in the place of
submodules. Supporting submodules is critical to packaging releases
(combined with signed tags). With git-archive not support submodules,
it means that I have to manually package and sign each release, rather
than using git-tag.

This seems like it should be a fairly trivial thing to support,
possibly with the addition of a --with-submodules parameter for
git-archive to avoid backwards compatibility issues.

Thank you,
-Woody Gilk
Lead Developer of Kohana PHP Framework

^ permalink raw reply	[flat|nested] 14+ messages in thread
* git-archive and submodules
@ 2012-04-19 20:10 André Caron
  2012-04-20  8:11 ` Jens Lehmann
  0 siblings, 1 reply; 14+ messages in thread
From: André Caron @ 2012-04-19 20:10 UTC (permalink / raw)
  To: git

Hi,

I've recently needed to create a source code archive as part of a
custom build target.  This repository uses submodules and I need to
include the submodlule's source code in the archives too.  However,
git-archive does not have any option to do so.

I've taken a quick look at the GMANE mailing list archives and it
seems this provoked quite a discussion in 2009 and that Lars Hjemli
even wrote a patch (in several flavors) for archive.c to include
submodule-aware processing.  The lastest source code at
`git.kernel.org` does not contain any traces of this patch (or
submodule aware logic for that matter).  The mailing list archives are
not very convenient to browse and I can't figure out what the status
on this submodule-aware git-archive idea is.  Has this idea been
completely rejected, or is it still work in progress?

In case you're wondering, I don't seem to be the only one needing to
do this.  I found at least two scripts on GitHub that implement this
logic with various levels of accuracy/completeness[1][2] and I've
hacked an icky Windows batch file version [3] for minimal Windows
support until this feature can be implemented in Git itself.  I don't
mind putting in some time into a real patch if I need to, but I'm
curious about the fact that this has been requested before, a patch
was proposed and yet this is still not merged 4 years later.

So, what's the status on a submodule-aware git-archive command?

Thanks,
André

[1]: https://github.com/meitar/git-archive-all.sh
[2]: https://github.com/Kentzo/git-archive-all
[3]: https://github.com/AndreLouisCaron/git-archive-all.bat

^ permalink raw reply	[flat|nested] 14+ messages in thread
* git-archive and submodules
@ 2016-10-26 20:37 Anatoly Borodin
  2016-10-26 21:04 ` Stefan Beller
  0 siblings, 1 reply; 14+ messages in thread
From: Anatoly Borodin @ 2016-10-26 20:37 UTC (permalink / raw)
  To: git

Hi All,


are there plans to add submodules support to git-archive?


-- 
Mit freundlichen Grüßen,
Anatoly Borodin


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-10-26 21:04 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-29 13:47 git-archive and submodules Whit Armstrong
2008-03-29 13:52 ` Shawn O. Pearce
2008-03-29 14:13   ` Whit Armstrong
2008-03-29 21:05   ` CJ van den Berg
  -- strict thread matches above, loose matches on Subject: below --
2009-07-20 16:22 Woody Gilk
2009-07-20 17:33 ` Avery Pennarun
2009-07-20 20:56 ` Thomas Rast
2012-04-19 20:10 André Caron
2012-04-20  8:11 ` Jens Lehmann
2012-04-20 18:32   ` Fwd: " André Caron
2012-04-22 18:47     ` Robert Quattlebaum
2013-10-10 14:09       ` Damien Regad
2013-10-10 19:22         ` Amit Bakshi
2016-10-26 20:37 Anatoly Borodin
2016-10-26 21:04 ` Stefan Beller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).