--- a/src/hg-ssh Sat Dec 04 20:22:01 2010 +0000
+++ b/src/hg-ssh Fri Dec 17 21:00:06 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()