purcell/darcs-to-git — Issue #10: TAGged darcs repo before initial commit leads to fatal
Author: amcphail
Created: 2012-01-09 03:33:18+00:00
State: open

I have a darcs repo that was tagged before any files were committed.

When I run darcs-to-git it fails on the first patch:

Importing patch 1 of 18:

================================================================================
PATCH : TAG 0.2.0.5
DATE : 2010-07-05 02:03:49 +1200
AUTHOR: Vivian McPhail => Vivian McPhail
--------------------------------------------------------------------------------
You don't want to pull any patches, and that's fine with me!

fatal: Failed to resolve 'HEAD' as a valid ref.
../purcell-darcs-to-git-2ed49a9/darcs-to-git:153:in `run': Failed to run: ["git", "tag", "-a", "-f", "-m", "TAG 0.2.0.5\n\ndarcs-hash:20100704140349-af16d-46ee0763d020eccea99f5859b6912f4ecda78159.gz", "0.2.0.5"] (RuntimeError)
from ../purcell-darcs-to-git-2ed49a9/darcs-to-git:365:in `commit_to_git_repo'
from ../purcell-darcs-to-git-2ed49a9/darcs-to-git:333:in `pull_and_apply'
from ../purcell-darcs-to-git-2ed49a9/darcs-to-git:553
from ../purcell-darcs-to-git-2ed49a9/darcs-to-git:288:in `each_with_index'
from ../purcell-darcs-to-git-2ed49a9/darcs-to-git:551:in `each'
from ../purcell-darcs-to-git-2ed49a9/darcs-to-git:551:in `each_with_index'
from ../purcell-darcs-to-git-2ed49a9/darcs-to-git:551