git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / Atom feed
* Possible error on the git-svn man page
@ 2013-06-28  7:54 Szuba, Marek (IKP)
  2013-07-07  2:15 ` Jonathan Nieder
  0 siblings, 1 reply; 2+ messages in thread
From: Szuba, Marek (IKP) @ 2013-06-28  7:54 UTC (permalink / raw)
  To: git

Hello,

On the git-svn(1) man page, the third example in the "Basic Examples"
section discusses how one can speed up the initial clone of a
Subversion repository by cloning it from Git first and linking it to
Subversion afterwards. However, it seems this example is not correct. I
have had several people try it on several different repositories, with
different git versions (specifically, 1.7 and 1.8) - and every time the
process fails at the same moment with the same error message:

$ git checkout -b master FETCH_HEAD
fatal: Cannot update paths and switch to branch 'master' at the same time.
Did you intend to checkout 'FETCH_HEAD' which can not be resolved as commit?

Therefore, I believe the man page ought to be updated so that the example works again.

If you have any questions, please let me know (by direct e-mail - I am not subscribed to the mailing list).

All the best,
-- 
MS

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

* Re: Possible error on the git-svn man page
  2013-06-28  7:54 Possible error on the git-svn man page Szuba, Marek (IKP)
@ 2013-07-07  2:15 ` Jonathan Nieder
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Nieder @ 2013-07-07  2:15 UTC (permalink / raw)
  To: Szuba, Marek (IKP); +Cc: git, Eric Wong, Jan Krüger

Hi,

Szuba, Marek (IKP) wrote:

> On the git-svn(1) man page, the third example in the "Basic Examples"
[...]
> $ git checkout -b master FETCH_HEAD
> fatal: Cannot update paths and switch to branch 'master' at the same time.
> Did you intend to checkout 'FETCH_HEAD' which can not be resolved as commit?

What branch are you on when you run "git fetch"?  What does "git log
FETCH_HEAD" say?  Is this repository public, which would let people on
this list try it out?

Thanks,
Jonathan

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

end of thread, other threads:[~2013-07-07  2:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-28  7:54 Possible error on the git-svn man page Szuba, Marek (IKP)
2013-07-07  2:15 ` Jonathan Nieder

git@vger.kernel.org list mirror (unofficial, one of many)

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://public-inbox.org/git
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 git git/ https://public-inbox.org/git \
		git@vger.kernel.org
	public-inbox-index git

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://ou63pmih66umazou.onion/inbox.comp.version-control.git
	nntp://czquwvybam4bgbro.onion/inbox.comp.version-control.git
	nntp://hjrcffqmbrq6wope.onion/inbox.comp.version-control.git
	nntp://news.gmane.io/gmane.comp.version-control.git
 note: .onion URLs require Tor: https://www.torproject.org/

code repositories for the project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

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