id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
78	git source bzr target fails at git rev-list HEAD due to wrong arguments	afcowie	lele	"When trying to do a conversion from git to bzr, I ran into a problem and it crashed early in the process. As I happened to spend the morning with one of the Bazaar-NG hackers, Robert Collins, we paired on it for half an hour and he quickly traced the source.

When the git importer runs, the first thing it does is clone the source repository to a local checkout. However, a subsequent command, `git rev-list HEAD`, breaks. Step debugging through, Robert discovered that rather than the temporary clone, it was trying to use the old directory (and wrongly at that - no /.git was joined) - in other words, `GIT_DIR=` was set wrong.

Unfortunately he then started navigating all over the place so I'm not sure precisely where it was he discovered the problem, but he did a hot replace and it then succeeded (Well, for about 30 changesets (and then some other bug snagged it. Alas) My suspicion is that he was in the neighbourhood of lines 42-65 of `vcpx/repository/git/__init__.py`

I'm really sorry I can't be more precise, but hopefully that will spurn investigation in the right direction.

AfC
Sydney



The config file was whatever tailor generated with a very simple `tailor -v -s git -R ~/workspace/SlashTime/ -t bzr -T ~/tmp/slashtime-bzr`:

{{{
[DEFAULT]
verbose = True

[project]
target = bzr:target
start-revision = INITIAL
root-directory = /home/andrew/tmp/tailor-data
state-file = tailor.state
source = git:source
subdir = .

[bzr:target]
repository = /home/andrew/tmp/slashtime-bzr

[git:source]
repository = /home/andrew/workspace/SlashTime/
}}}"	defect	new	critical	VersionOne	git	0.9			
