From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00, DNS_FROM_OPENWHOIS, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=no version=3.2.5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to; bh=Md8URTgL5vLhGGG+vcEnE5j4eTBAvbDUVnRpnP+DIGw=; b=URJeKxRu2yjOUdFDdpERVO1DQyoqr9rnNsfEuxchewdWUWXEyncnXRzmGiSzWRafB1 qQOqaV9EDt7UrJYw9amwvgPaI8F7BdrC96qvg1wQ0ZtE2Y1P8+u/yv5DtSw8MePEy/+Q Hl0006NbaOjxj/XtyvUfUK9eLSo5IU8bb2rFo= Date: Mon, 29 Aug 2011 21:26:29 +0400 From: thecrux@gmail.com To: ALT Linux Sisyphus mailing list Message-ID: <20110829172629.GA2552@mail.truecrux.org> Mail-Followup-To: ALT Linux Sisyphus mailing list References: <20110828165527.GA1003@mail.truecrux.org> <20110829095405.GA12035@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20110829095405.GA12035@altlinux.org> Subject: Re: [sisyphus] git (1.7.6.1) 'submodule add' behaviour X-BeenThere: sisyphus@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Sisyphus discussions List-Id: ALT Linux Sisyphus discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2011 17:28:06 -0000 Archived-At: List-Archive: List-Post: On Mon, Aug 29, 2011 at 01:54:05PM +0400, Dmitry V. Levin wrote: > On Sun, Aug 28, 2011 at 08:55:27PM +0400, thecrux@gmail.com wrote: > > > > В новой версии git 1.7.6.1 изменилось поведение комманды submodule add > > Рассмотрим пример для git 1.7.6: > > > > $ mkdir test > > $ cd test > > $ git init > > $ git submodule add /path/to/another/gitrepo sub > > $ git submodule status > > -54025f777a47812935ff085214fe9503d6039c01 sub > > > > в случае git 1.7.6.1 последняя команда выдаёт > > 54025f777a47812935ff085214fe9503d6039c01 sub (heads/master) > > > > Т.е. субмодуль при добавлении сразу инициируется. Корректно ли такое > > поведение? > > Согласно git-submodule(1), > "If does not exist, then the submodule is created by cloning from > the named URL". Клонировался он в обоих случаях, но под init понимается: init Initialize the submodules, i.e. register each submodule name and url found in .gitmodules into .git/config. Сейчас сломались некоторые тесты, которые расчитывали на старое поведение. Судя по тому что удалось найти в рассылке [1], старое поведение submodule add считается неверным и было исправлено. 1. http://thread.gmane.org/gmane.comp.version-control.git/176268/focus=176320 -- Vladimir Lettiev aka crux ✉ theCrux@gmail.com