Tailor / converting between bzr and git

Joseph Wakeling joseph.wakeling at webdrake.net
Mon Feb 19 19:20:08 GMT 2007


John Arbash Meinel wrote:
> So for git to bzr you would do something like:
> 
>   tailor -sgit -tbzr -R /path/to/git/files -T /path/to/bzr/output \
>     --verbose > myconfig.conf
> 
> You may need to supply '--module', but I don't know what that would mean
> for either bzr or git, so I would probably leave it off.
> 
> It might be easiest to try it with a small test project, just to make
> sure it works.

Thanks for taking the time to explain it to me.  Unfortunately it's not
working.

I've set up the config with,

  tailor -sgit -tbzr -R /joe/code/MGa/.git/ -T /joe/code/MGa-bzr/  \
     --verbose --subdir=MGa.tmp > MGa.conf

but tailor -D --configfile MGa.conf then produces the output (last few
bits only, where the error happens),

19:14:28 [I] Checking out revision
ed15bafcf4012ab6abc128a19b5ee60444b1060a (INITIAL)
19:14:28 [I] /joe/code/MGa.tmp $ git reset --hard
ed15bafcf4012ab6abc128a19b5ee60444b1060a
fatal: /usr/bin/git-reset cannot be used without a working tree.
19:14:28 [W] [Status 1]
19:14:28 [C] Checkout of project failed!

I don't know if this is a bug (that tailor should use git-checkout
instead of git-reset) but can't see otherwise why it should be having a
problem.  Any thoughts?

If I have to go over to the tailor people to confirm what's wrong, I
presume people on this list would be interested in knowing the solution?

Thanks again,

    -- Joe




More information about the bazaar mailing list