felipec / git-remote-hg

Transparent bidirectional bridge between Git and Mercurial for Git
GNU General Public License v2.0
369 stars 87 forks source link

Ignore git submodules in fast-import stream #25

Closed fingolfin closed 8 years ago

fingolfin commented 10 years ago

There is no way to map them to mercurial, but this way one retains at least some interoperability.

An alternative approach would be to export these as (fake) files or fake symlinks or so. This would allow hg users to at least remove submodule files. But on the other hand it could cause all kinds of complications if abused. Anyway, the patch as-is works for my use cases so far.

Fixes #22

alexei-31 commented 8 years ago

The author of this repository does not come for a long time, all of the latest patches (with this pull request) look in the @fingolfin repository: https://github.com/fingolfin/git-remote-hg

alexei-31 commented 8 years ago

You can see this commit at c3a4adc8 in that new fork.

felipec commented 8 years ago

The patch seems fine. The test case is a bit bloated, but I would apply the actual change.