dusty-phillips / gitifyhg

Tools for using git as a client to mercurial repositories
GNU General Public License v3.0
62 stars 17 forks source link

When gitifyhg fails, give a more sensible error message than IOError #79

Closed dusty-phillips closed 11 years ago

dusty-phillips commented 11 years ago

Sometimes (rarely!) gitifyhg fails in a clone and git cleans up it's attempted clone. This causes the .git directory to be deleted, and when gitifyhg tries to save marks, it fails with an IOError.

Ideally, whatever caused gitifyhg to fail should be fixed, but we should also catch this deceptive error message and output that somethnig happened earlier and to rerun with DEBUG enabled.

PaulPrice commented 11 years ago

Here's something that will do this.