Skip to content
Snippets Groups Projects
Commit 50ad5a8f authored by Dan Villiom Podlaski Christiansen's avatar Dan Villiom Podlaski Christiansen
Browse files

push: add ui.dropdotgit option, enabled by default

The current behaviour is quite unhelpful, given that it either allows
you to abort the conversion or generate a bogus repository. As an
example, GitHub rejects anything with a `.git` in it.

Instead, the new default is to issue a warning and simply discard the
dangerous files. Although this might cause problems down the line, I'd
much rather have those problems than just have hg-git give up.

As an example of such a bogus repository, look no further than this
one. c43c02cc803a committed some tests from Dulwich with nested Git
repositories, and a061dce264b7 renamed them. Prior to this change,
hg-git could not push its own repository to GitHub.

(While at it, I folder the doctest into the dedicated test file as it
was hard to both read and modify.)
parent 389ce1fb
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment