[devel] git submodules vs gear

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


10.01.2010 01:31, Dmitry V. Levin пишет:
> On Sat, Jan 09, 2010 at 11:29:41PM +0300, Alexey Gladkov wrote:
>> On 09.01.2010 23:19, 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?
>>
>> I did support for submodules, but gear's upstream don't want it.
>>
>> http://git.altlinux.org/people/legion/packages/gear.git?p=gear.git;a=shortlog;h=refs/heads/submodule

<skip>

>
> As you see, there is a fundamental problem: GIT submodule breaks
> repository completeness, but gear requires git repositories to be
> self-contained.  I have no idea how to avoid this problem.

Более того - в git появился git fetch --depth , который тоже ломает 
целостность репозитория.

Но было бы неплохо научиться с ним жить.

С submodules я столкнулся с такими проблемами, что мне оказалось проще 
импортировать tar.bz, чем тащить submodules в отдельные бранчи, а потом 
всё это мержить с ours.

Особенно, когда в виде submodule используется git ядра.


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