From: Christine Bauers <c.bauers@gmx.de>
To: git@vger.kernel.org
Subject: Git svn migration does not work because fatal git checkout updating paths is incompatible with switching branches
Date: Wed, 25 Jan 2012 19:04:26 +0100 [thread overview]
Message-ID: <4F20442A.1080005@gmx.de> (raw)
Hi there,
I´m trying to migrate a repository from svn to git which branches and
tags with the following migration script:
git svn clone --no-metadata --stdlayout --A ../users.txt
svn://host/svn/project/subproject subproject
cd subproject
git config svn.authorsfile ../../users.txt
git svn fetch
git checkout -b branch1 remotes/branch1
git checkout -b branch2 remotes/branch2
git checkout -b branch3 remotes/branch3
git checkout -b src_v1 remotes/tags/src
git checkout master
git tag src src_v1
git branch -D src_v1
git checkout -b WebContent_v1 remotes/tags/WebContent
git checkout master
git tag WebContent WebContent_v1
git branch -D WebContent_v1
and get the follwoing errors:
W: Ignoring error from SVN, path probably does not exist: (160013):
Filesystem has no item: Datei nicht gefunden: Revision 8966, Pfad
»subproject«
W: Do not be alarmed at the above message git-svn is just searching
aggressively for old history.
This may take a while on large repositories
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'remotes/branch1' which can not be resolved
as commit?
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'remotes/branch2 which can not be resolved as
commit?
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'remotes/branch3' which can not be resolved
as commit?
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'remotes/tags/src' which can not be resolved
as commit?
error: pathspec 'master' did not match any file(s) known to git.
fatal: Failed to resolve 'src_v1' as a valid ref.
error: branch 'src_v1' not found.
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'remotes/tags/WebContent' which can not be
resolved as commit?
error: pathspec 'master' did not match any file(s) known to git.
fatal: Failed to resolve 'WebContent_v1' as a valid ref.
error: branch 'WebContent_v1' not found.
How do I solve this problem?
Greetings
Christine
next reply other threads:[~2012-01-25 18:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-25 18:04 Christine Bauers [this message]
2012-01-25 19:09 ` Git svn migration does not work because fatal git checkout updating paths is incompatible with switching branches Carlos Martín Nieto
2012-01-26 8:50 ` Christine Bauers
2012-01-27 4:34 ` David Barr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F20442A.1080005@gmx.de \
--to=c.bauers@gmx.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).