diff options
author | vg <vgm+dev@devys.org> | 2019-06-27 15:17:44 +0200 |
---|---|---|
committer | vg <vgm+dev@devys.org> | 2019-06-27 15:17:44 +0200 |
commit | 4ade859c4cb6d1cdeef4e7f37d78c1cf3a1d9ac4 (patch) | |
tree | 342e8c4d7a683499a1ba28454c787f457ee5c395 /gitcmd | |
parent | 1ac752cd333446d9fac4f577542e888604112a1e (diff) | |
download | ssh-git-only-4ade859c4cb6d1cdeef4e7f37d78c1cf3a1d9ac4.tar.gz ssh-git-only-4ade859c4cb6d1cdeef4e7f37d78c1cf3a1d9ac4.tar.bz2 ssh-git-only-4ade859c4cb6d1cdeef4e7f37d78c1cf3a1d9ac4.zip |
update gitcmd to be compatible with ssh:// git clone urls
Diffstat (limited to 'gitcmd')
-rwxr-xr-x | gitcmd | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -29,7 +29,7 @@ except FileNotFoundError: try: ssh_original_command = os.environ['SSH_ORIGINAL_COMMAND'].split() command = ssh_original_command[0] - repository = ssh_original_command[1].split('.git')[0].strip("'") + repository = ssh_original_command[1].split('.git')[0].strip("'").strip('/') except IndexError: if command == 'ls': lsexit_repositories(repositories_ro, repositories_rw) |