I've been trying to export my fossil repo into git using the instructions found here. I've seen this question here but it doesn't have an answer to my question.
I followed all the directions on https://www.fossil-scm.org/xfer/doc/tip/www/inout.wiki but I can't seem to get it to work.
I did the following:
git init new-repo
cd new-repo
fossil export --git ../repo.fossil | git fast-import
I get the statistics:
git-fast-import statistics:
---------------------------------------------------------------------
Alloc'd objects: 10000
Total objects: 8831 ( 8 duplicates )
blobs : 5578 ( 0 duplicates 3374 deltas of 5224 attempts)
trees : 2509 ( 8 duplicates 1419 deltas of 2378 attempts)
commits: 744 ( 0 duplicates 0 deltas of 0 attempts)
tags : 0 ( 0 duplicates 0 deltas of 0 attempts)
Total branches: 1 ( 1 loads )
marks: 1048576 ( 6322 unique )
atoms: 4253
Memory total: 2704 KiB
pools: 2235 KiB
objects: 468 KiB
---------------------------------------------------------------------
pack_report: getpagesize() = 4096
pack_report: core.packedGitWindowSize = 1073741824
pack_report: core.packedGitLimit = 8589934592
pack_report: pack_used_ctr = 2936
pack_report: pack_mmap_calls = 744
pack_report: pack_open_windows = 1 / 1
pack_report: pack_mapped = 207355128 / 207355128
---------------------------------------------------------------------
I don't see anything wrong, but I don't have a working repo. Am I missing a step? I didn't find any more info in the fossil documentation. Thanks in advance.
Edit: As an answer to the question below, I tried it with the -R and without the -R for the export command.
You will need to check out the trunk branch of the new Git repository. By default, the git init
command creates and checks out an empty branch called master. But Fossil uses trunk as its main branch.
So invoke git checkout trunk
after the git fast-import
and you'll be able to see all the files in the working directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With