Fossil Git Import

Artifact [c4c630528f]
Login

Artifact c4c630528f2841083c5429bf1e34ba5a09ebcb71:

Wiki page [Fossil Git Import] by alec 2010-09-13 11:22:47.
D 2010-09-13T11:22:47
L Fossil\sGit\sImport
P 7cd4e57603a5cafbd91dc441c3eb4537221ae8ff
U alec
W 1389
This tool allows you to transform a git repository into a fossil repository.
It does so by using the 'fast-export' sub command of recent git releases.

<b>Please Note:</b> <ol><li>Previous versions of fossil are missing the 'reconstruct' command that this script depends on. Please use a current release</li>
<li>Currently this script does not work on MS Windows because of limitations in the Windows file system.</li></ol>

<b>To Clone:</b>
<verbatim>
fossil clone http://code.linuxfood.net/pub/repo/git-import git_import.fsl
</verbatim>

At present it ignores several things:
  *  symlinks - fossil doesn't support these
  *  branches - any time a git repo branches it's treated as a leaf in fossil. It works out to be basically the same.

Both of those are things which may be fixed in a future release, at present, however, it's usually sufficient to recreate the tags and branches by hand.

You can get started with it by cloning this repository and running:
<verbatim>
import-git-export.pl <path to git checkout>
</verbatim>

By default it transforms the resultant <code>git-history.txt</code> into a series of artifacts under <code>artifacts/</code>.

You can control the output directory by running it like so:
<verbatim>
import-git-export.pl <path to git checkout> <artifacts dir>
</verbatim>
If the directory doesn't exist, it will be created for you.
Z 7bb4c4607e7e86bfd77ee7763b1871b5