summaryrefslogtreecommitdiffstats
path: root/git-interface/git-auth.py
diff options
context:
space:
mode:
Diffstat (limited to 'git-interface/git-auth.py')
-rwxr-xr-xgit-interface/git-auth.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/git-interface/git-auth.py b/git-interface/git-auth.py
index 7cd033c..ebdc75c 100755
--- a/git-interface/git-auth.py
+++ b/git-interface/git-auth.py
@@ -1,11 +1,10 @@
#!/usr/bin/python3
-import configparser
import shlex
-import os
import re
import sys
+import config
import db
@@ -24,9 +23,6 @@ def format_command(env_vars, command, ssh_opts, ssh_key):
return msg
-config = configparser.RawConfigParser()
-config.read(os.path.dirname(os.path.realpath(__file__)) + "/../conf/config")
-
valid_keytypes = config.get('auth', 'valid-keytypes').split()
username_regex = config.get('auth', 'username-regex')
git_serve_cmd = config.get('auth', 'git-serve-cmd')