From b55ff5e3137e3b0b002ca7a018adb7a4e247afd0 Mon Sep 17 00:00:00 2001 From: vg Date: Wed, 1 Jul 2020 16:03:24 +0200 Subject: add support for ssh:// syntax originating git clone commands --- gitcmd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitcmd b/gitcmd index c2c5c0f..8417e58 100755 --- a/gitcmd +++ b/gitcmd @@ -30,6 +30,8 @@ try: ssh_original_command = os.environ['SSH_ORIGINAL_COMMAND'].split() command = ssh_original_command[0] repository = ssh_original_command[1].split('.git')[0].strip("'").strip('/') + if repository[0] == '/': + repository = repository[1:] except IndexError: if command == 'ls': lsexit_repositories(repositories_ro, repositories_rw) -- cgit v1.2.3