diff options
author | vg <vgm+dev@devys.org> | 2020-07-01 16:03:24 +0200 |
---|---|---|
committer | vg <vgm+dev@devys.org> | 2020-07-01 16:03:24 +0200 |
commit | b55ff5e3137e3b0b002ca7a018adb7a4e247afd0 (patch) | |
tree | 589f38ac2c1aac893bb71746f67559b64fb22537 /gitcmd | |
parent | 4ade859c4cb6d1cdeef4e7f37d78c1cf3a1d9ac4 (diff) | |
download | ssh-git-only-master.tar.gz ssh-git-only-master.tar.bz2 ssh-git-only-master.zip |
Diffstat (limited to 'gitcmd')
-rwxr-xr-x | gitcmd | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |