[devel] git submodules on git.alt

Anton Farygin rider на altlinux.com
Вс Янв 10 08:50:09 UTC 2010


10.01.2010 01:43, Dmitry V. Levin пишет:
> On Sat, Jan 09, 2010 at 08:19:09PM +0000, Max Ivanov wrote:
>> How to deal with git submodules? Upstream uses them in some places and
>> I don't know how to put their content in the final source tree prior
>> to %build stage. Is it even possible?
>
> Due to the fundamental problem already described in this thread, you
> cannot use git submodules AS IS to build packages using gear.  There is
> simple workaround you can use to overcome this problem:
> 1. Extract each submodule into separate tarball using appropriate
>     .gear/rules; this is trivial because you know commit ids.
> 2. Make sure that your build commit inherits to all these submodule
>     commits.
>
> Unfortunately, there are no means in gear-update-*whatever* yet to
> automate this work.


Это хороший метод, но он зачастую неудобен - git репозиторий вырастает 
до непотребных размеров (700Mb, для примера), получающийся из суммы всех 
submodules.

git fetch --depth помог бы, но такие репозитории у меня не получилось 
выложить на git.alt.


Подробная информация о списке рассылки Devel