All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Lehmann <Jens.Lehmann@web.de>
To: Pedro Rodrigues <prodrigues1990@gmail.com>,
	Fredrik Gustafsson <iveqy@iveqy.com>
Cc: git@vger.kernel.org, Johannes Schindelin <Johannes.Schindelin@gmx.de>
Subject: Re: git-archive ignores submodules
Date: Thu, 16 Apr 2015 21:03:10 +0200	[thread overview]
Message-ID: <5530076E.50605@web.de> (raw)
In-Reply-To: <CAL1ZDKbcmrer481fRY2NEHUQ1J5tjRbHz2yLEcszh3Q-NjcvcQ@mail.gmail.com>

Am 16.04.2015 um 20:09 schrieb Pedro Rodrigues:
> Good to know about git submodule foreach.
>
> Simpler yet, I'm using:
>
> zip -r ../project.zip . -x *.git*
>
> Which essentially does the same thing I would need from git-archive
> --recurse-submodule, zip everything excluding .git folders. Still
> would be better to use git itself.

Yes.

> 2015-04-16 18:56 GMT+01:00 Fredrik Gustafsson <iveqy@iveqy.com>:
>> On Thu, Apr 16, 2015 at 06:35:38PM +0100, Pedro Rodrigues wrote:
>>> I've been using git-archive as my main way of deploying to production
>>> servers, but today I've come across a git repo with submodules and
>>> found out that git archive has no option to include submodules on the
>>> output archive.
>>
>> As far as I know this is an known limitation that's just waiting for
>> someone to solve. Thanks for bringing attention to it.

I just rebased a patch Lars Hjemli posted in 2009 (which I kept in my
GitHub repo to resurrect it when I find the time) to current master:

https://github.com/jlehmann/git-submod-enhancements/commits/archive--submodules

See gmane/$107030 for its original posting. Apart from renaming the
'--submodule' option to '--recurse-submodules' and solving a merge
conflict I didn't change anything. Not sure why it wasn't accepted
back then, I'll have to read that thread more closely ...

If people are interested I could try to polish it and resubmit it.
It would be great if Pedro could test that it does what he expects.

  reply	other threads:[~2015-04-16 19:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-16 17:35 git-archive ignores submodules Pedro Rodrigues
2015-04-16 17:56 ` Fredrik Gustafsson
2015-04-16 18:09   ` Pedro Rodrigues
2015-04-16 19:03     ` Jens Lehmann [this message]
2015-04-16 19:59       ` Pedro Rodrigues
2015-04-20  8:51         ` Chris Packham
2015-04-19 16:19       ` Kevin Daudt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5530076E.50605@web.de \
    --to=jens.lehmann@web.de \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=iveqy@iveqy.com \
    --cc=prodrigues1990@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.