diff options
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) |