hgext/largefiles/overrides.py
branchstable
changeset 24812 e4e69cebeedd
parent 24788 b8c3a0994b37
child 24813 2553ef7355ab
--- a/hgext/largefiles/overrides.py	Fri Apr 17 14:12:01 2015 -0700
+++ b/hgext/largefiles/overrides.py	Sat Apr 18 00:34:38 2015 -0400
@@ -838,6 +838,12 @@
         sourcerepo, destrepo = result
         repo = destrepo.local()
 
+        # When cloning to a remote repo (like through SSH), no repo is available
+        # from the peer.   Therefore the largefiles can't be downloaded and the
+        # hgrc can't be updated.
+        if not repo:
+            return result
+
         # If largefiles is required for this repo, permanently enable it locally
         if 'largefiles' in repo.requirements:
             fp = repo.vfs('hgrc', 'a', text=True)