ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] git (1.7.6.1) 'submodule add' behaviour
@ 2011-08-28 16:55 thecrux
  2011-08-29  9:54 ` Dmitry V. Levin
  0 siblings, 1 reply; 3+ messages in thread
From: thecrux @ 2011-08-28 16:55 UTC (permalink / raw)
  To: ALT Linux Sisyphus mailing list


В новой версии 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)

Т.е. субмодуль при добавлении сразу инициируется. Корректно ли такое
поведение?

-- 
Vladimir Lettiev aka crux ✉ theCrux@gmail.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] git (1.7.6.1) 'submodule add' behaviour
  2011-08-28 16:55 [sisyphus] git (1.7.6.1) 'submodule add' behaviour thecrux
@ 2011-08-29  9:54 ` Dmitry V. Levin
  2011-08-29 17:26   ` thecrux
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry V. Levin @ 2011-08-29  9:54 UTC (permalink / raw)
  To: ALT Linux Sisyphus mailing list

[-- Attachment #1: Type: text/plain, Size: 697 bytes --]

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 <path> does not exist, then the submodule is created by cloning from
the named URL".


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] git (1.7.6.1) 'submodule add' behaviour
  2011-08-29  9:54 ` Dmitry V. Levin
@ 2011-08-29 17:26   ` thecrux
  0 siblings, 0 replies; 3+ messages in thread
From: thecrux @ 2011-08-29 17:26 UTC (permalink / raw)
  To: ALT Linux Sisyphus mailing list

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 <path> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-29 17:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-28 16:55 [sisyphus] git (1.7.6.1) 'submodule add' behaviour thecrux
2011-08-29  9:54 ` Dmitry V. Levin
2011-08-29 17:26   ` thecrux

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git