[sysadmin-bin] run-git-or-special-cmd: fix bug, add debugging
- From: Owen Taylor <otaylor src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] run-git-or-special-cmd: fix bug, add debugging
- Date: Fri,  6 Sep 2013 16:24:12 +0000 (UTC)
commit 4059c7bd03e74641384ad27b4ce27ed9146cfb69
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Fri Sep 6 12:24:05 2013 -0400
    run-git-or-special-cmd: fix bug, add debugging
 run-git-or-special-cmd |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/run-git-or-special-cmd b/run-git-or-special-cmd
index 7b6caff..c2e30a7 100755
--- a/run-git-or-special-cmd
+++ b/run-git-or-special-cmd
@@ -4,6 +4,7 @@ import grp
 import os
 import pwd
 import shlex
+import sys
 
 # vim: set ts=4 sw=4:
 
@@ -55,6 +56,8 @@ def validate_git_dir(path):
     return path
 
 def rungitcommand(args):
+    print >>sys.stderr, 'args are', repr(args)
+
     git_cmds =[ 'receive-pack', 'upload-pack', 'upload-archive' ]
 
     special_cmds = {
@@ -81,6 +84,5 @@ if __name__ == "__main__":
     if 'SSH_ORIGINAL_COMMAND' in os.environ:
         rungitcommand(shlex.split(os.environ['SSH_ORIGINAL_COMMAND']))
     else:
-        import sys
         print >>sys.stderr, 'SSH authentication succeeded. Interactive login is not allowed.'
         sys.exit(1)
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]