From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <4B4993A7.4000209@altlinux.com> Date: Sun, 10 Jan 2010 11:45:27 +0300 From: Anton Farygin User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5pre) Gecko/20091019 Thunderbird/3.0pre MIME-Version: 1.0 To: ALT Linux Team development discussions References: <4B48E735.6040908@altlinux.ru> <20100109223125.GA14247@wo.int.altlinux.org> In-Reply-To: <20100109223125.GA14247@wo.int.altlinux.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [devel] git submodules vs gear X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jan 2010 08:45:38 -0000 Archived-At: List-Archive: List-Post: 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 > > 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 ядра.