changeset 18572:5fe58f9332a4

git convert: some versions of git use fatal: instead of error: I saw this behavior with git 1.7.12 on my Mac.
author Augie Fackler <raf@durin42.com>
date Fri, 08 Feb 2013 07:09:48 -0600
parents ad5817505834
children 003730ca254d
files hgext/convert/git.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/git.py	Fri Feb 08 07:57:32 2013 -0600
+++ b/hgext/convert/git.py	Fri Feb 08 07:09:48 2013 -0600
@@ -231,7 +231,7 @@
         # Build complete list of tags, both annotated and bare ones
         for line in fh:
             line = line.strip()
-            if line.startswith("error:"):
+            if line.startswith("error:") or line.startswith("fatal:"):
                 raise util.Abort(_('cannot read tags from %s') % self.path)
             node, tag = line.split(None, 1)
             if not tag.startswith(prefix):