ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] git svn (multi)
@ 2008-11-12 13:46 Led
  2008-11-12 14:37 ` Alexey I. Froloff
  0 siblings, 1 reply; 5+ messages in thread
From: Led @ 2008-11-12 13:46 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Не подскажет ли кто:
как импортировать в один git-репозитарий несколько SVN? Например, в два разных 
бранча. Что-то не нашёл как это сделать стандартным "git svn" :(

-- 
Led

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

* Re: [devel] git svn (multi)
  2008-11-12 13:46 [devel] git svn (multi) Led
@ 2008-11-12 14:37 ` Alexey I. Froloff
  2008-11-12 21:48   ` Led
  2008-11-12 22:47   ` Led
  0 siblings, 2 replies; 5+ messages in thread
From: Alexey I. Froloff @ 2008-11-12 14:37 UTC (permalink / raw)
  To: ALT Devel discussion list

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

* Led <ledest@> [081112 16:50]:
> как импортировать в один git-репозитарий несколько SVN? Например, в два разных 
> бранча. Что-то не нашёл как это сделать стандартным "git svn" :(
git config --add svn-remote.NAME.url svn://.../branches/NAME
git config --add svn-remote.NAME.fetch :refs/remotes/branches/NAME
git svn fetch NAME

-- 
Regards,
Sir Raorn.

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

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

* Re: [devel] git svn (multi)
  2008-11-12 14:37 ` Alexey I. Froloff
@ 2008-11-12 21:48   ` Led
  2008-11-12 22:31     ` Alexey I. Froloff
  2008-11-12 22:47   ` Led
  1 sibling, 1 reply; 5+ messages in thread
From: Led @ 2008-11-12 21:48 UTC (permalink / raw)
  To: ALT Linux Team development discussions

On Wednesday, 12 November 2008 16:37:21 Alexey I. Froloff wrote:
> * Led <ledest@> [081112 16:50]:
> > как импортировать в один git-репозитарий несколько SVN? Например, в два
> > разных бранча. Что-то не нашёл как это сделать стандартным "git svn" :(
>
> git config --add svn-remote.NAME.url svn://.../branches/NAME
> git config --add svn-remote.NAME.fetch :refs/remotes/branches/NAME
> git svn fetch NAME

Спасибо.
А как теперь сделать из него локальный бранч? и чтоб последующие
git svn fetch
обновляло именно в него?

-- 
Led

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

* Re: [devel] git svn (multi)
  2008-11-12 21:48   ` Led
@ 2008-11-12 22:31     ` Alexey I. Froloff
  0 siblings, 0 replies; 5+ messages in thread
From: Alexey I. Froloff @ 2008-11-12 22:31 UTC (permalink / raw)
  To: ALT Devel discussion list

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

* Led <ledest@> [081113 00:56]:
> > git config --add svn-remote.NAME.fetch :refs/remotes/branches/NAME
> А как теперь сделать из него локальный бранч? и чтоб последующие
Ну напиши в .fetch локальный бранч ;-)

-- 
Regards,
Sir Raorn.

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

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

* Re: [devel] git svn (multi)
  2008-11-12 14:37 ` Alexey I. Froloff
  2008-11-12 21:48   ` Led
@ 2008-11-12 22:47   ` Led
  1 sibling, 0 replies; 5+ messages in thread
From: Led @ 2008-11-12 22:47 UTC (permalink / raw)
  To: ALT Linux Team development discussions

On Wednesday, 12 November 2008 16:37:21 Alexey I. Froloff wrote:
> * Led <ledest@> [081112 16:50]:
> > как импортировать в один git-репозитарий несколько SVN? Например, в два
> > разных бранча. Что-то не нашёл как это сделать стандартным "git svn" :(
>
> git config --add svn-remote.NAME.url svn://.../branches/NAME
> git config --add svn-remote.NAME.fetch :refs/remotes/branches/NAME
> git svn fetch NAME

А потом

git branch LOCAL_NAME NAME

и в дальнейшем для периодического обновления:

git svn fetch NAME
git checkout LOCAL_NAME
git svn rebase

делать?

-- 
Led

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

end of thread, other threads:[~2008-11-12 22:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-12 13:46 [devel] git svn (multi) Led
2008-11-12 14:37 ` Alexey I. Froloff
2008-11-12 21:48   ` Led
2008-11-12 22:31     ` Alexey I. Froloff
2008-11-12 22:47   ` Led

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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