aboutsummaryrefslogtreecommitdiffstats
path: root/gitcmd
diff options
context:
space:
mode:
Diffstat (limited to 'gitcmd')
-rwxr-xr-xgitcmd2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitcmd b/gitcmd
index 32d3670..c2c5c0f 100755
--- a/gitcmd
+++ b/gitcmd
@@ -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)