aboutsummaryrefslogtreecommitdiffstats
path: root/gitcmd
diff options
context:
space:
mode:
authorvg <vgm+dev@devys.org>2019-06-27 15:17:44 +0200
committervg <vgm+dev@devys.org>2019-06-27 15:17:44 +0200
commit4ade859c4cb6d1cdeef4e7f37d78c1cf3a1d9ac4 (patch)
tree342e8c4d7a683499a1ba28454c787f457ee5c395 /gitcmd
parent1ac752cd333446d9fac4f577542e888604112a1e (diff)
downloadssh-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-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)