infocalypse

(Arne Babenhauserheide)
2012-06-30: fix hg-git interaction error.

fix hg-git interaction error.

diff --git a/infocalypse/__init__.py b/infocalypse/__init__.py
--- a/infocalypse/__init__.py
+++ b/infocalypse/__init__.py
@@ -552,8 +552,11 @@ def freenetpull(orig, *args, **opts):
     def parsepushargs(ui, repo, path=None):
         return ui, repo, path
     def isfreenetpath(path):
-        if path and path.startswith("freenet:") or path.startswith("USK@"):
-            return True
+        try:
+            if path.startswith("freenet:") or path.startswith("USK@"):
+                return True
+        except AttributeError:
+            return False
         return False
     ui, repo, path = parsepushargs(*args)
     if not path: