views:

264

answers:

3

I need to pack git submodules inside of tarball which I create with git-archive.

I see that in 1.6.5 git-archive does not support git submodules.

I see several scripts to handle this case in the net, but I'm not sure which one to pick.

What is the best / most official way to do this?

I've ended up using with working copy on a dedicated clone repository... but it is rather sad there is no (semi-)official support for this feature. If you use something specific to solve this problem, please speak up. :-)

+2  A: 

The best way is probably with one of those "several scripts to handle this case in the net". Why isn't that acceptable?

Randal Schwartz
It is probably the only way now, as Git itself does not support this feature. The question was: which one?
Alexander Gladysh
A: 

Actually, I've found that git submodules are too broken for me: http://stackoverflow.com/questions/1596822/git-submodules-workflow/1597087

Alexander Gladysh
+1  A: 

You can try my script http://github.com/Kentzo/git-archive-all

Kentzo