diff --git a/hggit/__init__.py b/hggit/__init__.py
index f9c6a92e056622e1c23a8343a50221283c1bf939_aGdnaXQvX19pbml0X18ucHk=..73cf8d292dcb9ef662dfdc160fb7c974eb73a3e8_aGdnaXQvX19pbml0X18ucHk= 100644
--- a/hggit/__init__.py
+++ b/hggit/__init__.py
@@ -173,11 +173,7 @@
             cleanup = None
         return r, c, cleanup
     return orig(ui, repo, other, *args, **opts)
-try:
-    extensions.wrapfunction(bundlerepo, 'getremotechanges', getremotechanges)
-except AttributeError:
-    # 1.7+
-    pass
+extensions.wrapfunction(bundlerepo, 'getremotechanges', getremotechanges)
 
 def peer(orig, uiorrepo, *args, **opts):
     newpeer = orig(uiorrepo, *args, **opts)