Initial commit
This commit is contained in:
14
gitlab-shell
Executable file
14
gitlab-shell
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
import sys
|
||||
import subprocess
|
||||
|
||||
import config
|
||||
|
||||
command = " ".join(sys.argv)
|
||||
|
||||
if 'SSH_ORIGINAL_COMMAND' in os.environ:
|
||||
command = "SSH_ORIGINAL_COMMAND='" + os.environ['SSH_ORIGINAL_COMMAND'] + "' " + command
|
||||
|
||||
subprocess.call(["ssh", "git@{}".format(config.GITLAB_HOST), "-p", "{}".format(config.GITLAB_SSH_PORT), command])
|
Reference in New Issue
Block a user