src/hg-ssh
changeset 275 2e781d52f76e
parent 244 48fab30c38e1
child 303 3f9f247b72bd
--- a/src/hg-ssh	Fri Dec 17 18:54:38 2010 +0000
+++ b/src/hg-ssh	Fri Dec 17 20:45:16 2010 +0000
@@ -34,17 +34,8 @@
     if head:
         checkDots(head)
 
-def checkParents(path):
-    path = os.path.dirname(path)
-    if path == "":
-        return
-    if os.path.exists(path + "/.hg"):
-        fail("Cannot create repo under existing repo")
-    checkParents(path)
-
 def getrepo(op, repo):
     # First canonicalise, then check the string, then the rules
-    # and finally the filesystem.
     repo = repo.strip().rstrip("/")
     if len(repo) == 0:
         fail("path to repository seems to be empty")
@@ -54,7 +45,6 @@
     ruleset.rules.set(repo=repo)
     if not ruleset.rules.allow(op, branch=None, file=None):
         fail("access denied")
-    checkParents(repo)
     return repo
 
 config.initExe()