glt learns to deal better with non-git commands

This commit is contained in:
Sitaram Chamarty 2012-03-18 10:01:07 +05:30
parent e743cab1a3
commit c79f9d2381
3 changed files with 20 additions and 19 deletions

View file

@ -34,8 +34,10 @@ exit 0;
# XXX lots of stuff from gl-auth-command is missing for now...
sub in_local {
print STDERR "TRACE: gsh(", join( ")(", @ARGV ), ")\n";
print STDERR "TRACE: gsh(SOC=$ENV{SSH_ORIGINAL_COMMAND})\n";
if ($ENV{SSH_ORIGINAL_COMMAND} =~ /git-\w+-pack/) {
print STDERR "TRACE: gsh(", join( ")(", @ARGV ), ")\n";
print STDERR "TRACE: gsh(SOC=$ENV{SSH_ORIGINAL_COMMAND})\n";
}
}
sub in_http {