From b13640b190f9d538ba2065b2d470213a9586b164 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Sep 27 2018 08:49:07 +0000 Subject: Make AclChecker remove / if provided from reponame Signed-off-by: Patrick Uiterwijk --- diff --git a/files/aclchecker.py b/files/aclchecker.py index 34817a5..f8a6c2b 100644 --- a/files/aclchecker.py +++ b/files/aclchecker.py @@ -57,6 +57,9 @@ if path[0] != "'" or path[-1] != "'": print("Invalid call: invalid path", file=sys.stderr) sys.exit(1) path = path[1:-1] +if path[0] == '/': + # With the "ssh://hostname/repo.git", SSH sends "/repo.git" + path = path[1:] if os.path.isabs(path): print("Non-full path expected, not %s" % path, file=sys.stderr)