hgext/convert/git.py
changeset 14945 11aad09a6370
parent 14735 d297ee0b2d94
child 16259 589aab2ca716
child 16292 101c8a1befb1
--- a/hgext/convert/git.py	Mon Jul 25 15:30:19 2011 -0500
+++ b/hgext/convert/git.py	Mon Jul 25 20:37:12 2011 -0500
@@ -16,7 +16,7 @@
     # Windows does not support GIT_DIR= construct while other systems
     # cannot remove environment variable. Just assume none have
     # both issues.
-    if hasattr(os, 'unsetenv'):
+    if util.safehasattr(os, 'unsetenv'):
         def gitopen(self, s, noerr=False):
             prevgitdir = os.environ.get('GIT_DIR')
             os.environ['GIT_DIR'] = self.path