aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Fincham <michael@hotplate.co.nz>2018-08-24 14:41:45 +1200
committerGitHub <noreply@github.com>2018-08-24 14:41:45 +1200
commit1004809accaf22594a5bbe8b1e335614f9ce3496 (patch)
tree6d1bf0db891a1cf9fffca304a22b4143d50ffd16
parent8283070e6cddf38c0b13909d6d5e781ebab8b778 (diff)
downloadtiny-git-service-master.tar.gz
tiny-git-service-master.tar.bz2
tiny-git-service-master.zip
Fixes impossible split configHEADmaster
-rw-r--r--restricted-shell4
1 files changed, 2 insertions, 2 deletions
diff --git a/restricted-shell b/restricted-shell
index 4276b93..4623472 100644
--- a/restricted-shell
+++ b/restricted-shell
@@ -63,8 +63,8 @@ if __name__ == "__main__":
if not repo.endswith('.git'):
repo_path = repo + '.git'
if pathlib.Path(repo_path) == requested_repo:
- read_users = map(str.strip, acl_config[repo].get('read', '').split(', '))
- write_users = map(str.strip, acl_config[repo].get('write', '').split(', '))
+ read_users = map(str.strip, acl_config[repo].get('read', '').split(','))
+ write_users = map(str.strip, acl_config[repo].get('write', '').split(','))
if requested_command == 'git-upload-pack' and (user in read_users or user in write_users):
os.execlp('git', 'git', 'upload-pack', str(repo_path))
elif requested_command == 'git-receive-pack' and user in write_users: