Re: [PATCH 2/2] shell: new no-interactive-login command to print a custom message

2013-03-11 Thread Jonathan Nieder
Ramkumar Ramachandra wrote: > Jonathan Nieder wrote: >> * If the file ~/git-shell-commands/no-interactive-login exists, >>run no-interactive-login to let the server say what it likes, >>then hang up. [...] > If "no-interactive-login" doesn't have execute permissions, we'll get > an error

Re: [PATCH 2/2] shell: new no-interactive-login command to print a custom message

2013-03-10 Thread Ramkumar Ramachandra
Jonathan Nieder wrote: > * If the file ~/git-shell-commands/no-interactive-login exists, >run no-interactive-login to let the server say what it likes, >then hang up. > > * Otherwise, if ~/git-shell-commands/ is present, start an >interactive read-eval-print loop. > > * Otherwise, pr

Re: [PATCH 2/2] shell: new no-interactive-login command to print a custom message

2013-03-09 Thread Jonathan Nieder
Junio C Hamano wrote: > Jonathan Nieder writes: >> If I disable git-shell's interactive mode by removing the >> ~/git-shell-commands directory, attempts to use 'ssh' in produce a >> message intended for the administrator: > > Sorry, but -ECANTPARSE. s/in produce/produces/ perhaps? Or if you > m

Re: [PATCH 2/2] shell: new no-interactive-login command to print a custom message

2013-03-09 Thread Junio C Hamano
Jonathan Nieder writes: > If I disable git-shell's interactive mode by removing the > ~/git-shell-commands directory, attempts to use 'ssh' in produce a > message intended for the administrator: Sorry, but -ECANTPARSE. s/in produce/produces/ perhaps? Or if you meant "ssh in" as a verb, then "a

[PATCH 2/2] shell: new no-interactive-login command to print a custom message

2013-03-09 Thread Jonathan Nieder
If I disable git-shell's interactive mode by removing the ~/git-shell-commands directory, attempts to use 'ssh' in produce a message intended for the administrator: $ ssh git@myserver fatal: Interactive git shell is not enabled. hint: ~/git-shell-commands should exist and h