Initial commit

This commit is contained in:
Adrian Malacoda
2016-06-19 03:35:36 -05:00
commit 72a08e758b
5 changed files with 68 additions and 0 deletions

14
gitlab-shell Executable file
View 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])