~edwargix/git.sr.ht

a24377e3d5f4e08a1350ba7d3995c222c27f4698 — Drew DeVault 6 years ago 496ddfb
Support absolute clone paths for ssh:// clones
1 files changed, 1 insertions(+), 2 deletions(-)

M gitsrht-shell
M gitsrht-shell => gitsrht-shell +1 -2
@@ 52,8 52,7 @@ if len(cmd) < 1 or not cmd[0] in valid_commands:
os.chdir(repos)
path = os.path.abspath(cmd[-1])
if not path.startswith(repos):
    sys.stderr.write("Access denied")
    sys.exit(128)
    path = os.path.join(repos, path)
cmd[-1] = path

repo = Repository.query.filter(Repository.path == path).first()