aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvg <vgm+dev@devys.org>2020-07-01 16:03:24 +0200
committervg <vgm+dev@devys.org>2020-07-01 16:03:24 +0200
commitb55ff5e3137e3b0b002ca7a018adb7a4e247afd0 (patch)
tree589f38ac2c1aac893bb71746f67559b64fb22537
parent4ade859c4cb6d1cdeef4e7f37d78c1cf3a1d9ac4 (diff)
downloadssh-git-only-b55ff5e3137e3b0b002ca7a018adb7a4e247afd0.tar.gz
ssh-git-only-b55ff5e3137e3b0b002ca7a018adb7a4e247afd0.tar.bz2
ssh-git-only-b55ff5e3137e3b0b002ca7a018adb7a4e247afd0.zip
add support for ssh:// syntax originating git clone commandsHEADmaster
-rwxr-xr-xgitcmd2
1 files changed, 2 insertions, 0 deletions
diff --git a/gitcmd b/gitcmd
index c2c5c0f..8417e58 100755
--- a/gitcmd
+++ b/gitcmd
@@ -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)