From: Mathieu Malaterre <mathieu.malaterre@gmail.com>
To: git@vger.kernel.org
Subject: git-svn clone: file outside trunk
Date: Thu, 14 Oct 2010 12:19:00 +0200 [thread overview]
Message-ID: <AANLkTimeGZp_SS2oKy3=h48CBMFHeB3NOPvWKsd8NOvi@mail.gmail.com> (raw)
Hi,
I am trying to use git-svn to import an old svn project. I am not
sure I understand the documentation. For instance I am trying to
import a svn project where a portion of the history was directly at
the root level of the svn server. Eg:
svnadmin create test
mkdir out && cd out
svn co file:///tmp/test
echo "bla" > bla.c
svn add bla.c
svn ci -m"First commit"
mkdir trunk
svn add trunk
svn mv bla.c trunk
svn ci -m"Second Commit"
Now if I try to import it using git-svn:
$ git svn --no-metadata --stdlayout clone file:///tmp/test
Initialized empty Git repository in /tmp/git/test/.git/
A bla.c
r2 = d40bd2cdcc4208f54b4b092dca0a6b3f2b010fd0 (refs/remotes/trunk)
Checked out HEAD:
file:///tmp/test/trunk r2
Clearly rev 1 was lost. Is there a way to preserve history before the
re-root operation ?
Thanks a bunch !
--
Mathieu
reply other threads:[~2010-10-14 10:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='AANLkTimeGZp_SS2oKy3=h48CBMFHeB3NOPvWKsd8NOvi@mail.gmail.com' \
--to=mathieu.malaterre@gmail.com \
--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).