cosmin / git-hg

A git-hg utility for checking out and tracking a mercurial repo.
http://offbytwo.github.com/git-hg
MIT License
307 stars 51 forks source link

Error: repository has at least one unnamed head... #12

Closed ienorand closed 13 years ago

ienorand commented 13 years ago

This happened when trying to checkout http://code.google.com/p/lugaru/source/checkout (but is likely semi-common).

A quick-hack fix was to rewrite the git-hg script to call hg-fast-export with the "--force" option in addition.

It would be nice if git-hg was able to accept and pass along this flag to fast-export?

yarikoptic commented 13 years ago

+1 -- hapened for me with https://bitbucket.org/qbilius/confsup

padcom commented 13 years ago

+1 - needed to do the same with https://bitbucket.org/padcom/jtk

raphaelmonrouzeau commented 13 years ago

+1 just had the same with https://bitbucket.org/wkornewald/django-nonrel

tonidy commented 13 years ago

+1 -- me too when trying to clone bitbucket. Is git-hg not support https or like ieonard said about "--force" option?

thx

andypeters commented 13 years ago

+1 for me.

cosmin commented 13 years ago

Ok, working on a fix to allow specifying --force. Sorry for taking so long, for some reason I still don't get github notifications on issues.

ienorand commented 13 years ago

I think it may be relevant to add this to the "pull" action of git-hg as well, I did need --force there at some point in time, although I can't figure out how to reproduce that currently.

weisslj commented 12 years ago

@ienorand I have this problem, too! I submitted a patch that adds the --force option to pull, see pull request #24.