Re: Git prompt
- From
Ethan Reesor <firelizzard@gmail.com>
- Date
- Feb 10, 2013, 21:54 UTC
- Message-ID
- <CAE_TNin6oAt7DkXH-iUNFHoeXhoJnJ_rSvEy=w=QPTB8F0tsLw@mail.gmail.com>
- In-Reply-To
- <20130210212538.GA11720@elie.Belkin>
That would be perfect. (And I did mean I set the login shell to git-prompt. Additionally, the git user does not have permissions to run any other shell.) However, when I remove the git-shell-commands directory I get (on the local end):
fatal: Interactive git shell is not enabled. hint: ~/git-shell-commands should exist and have read and execute access.
If no one with more experience has the time to look into your suggestion, I will try.
Thanks, Ethan
On Sun, Feb 10, 2013 at 4:25 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 22 quoted lines
> Ethan Reesor wrote: > >> I have a git user set up on my server. It's prompt is set to >> git-prompt and it's git-shell-commands is empty. > [...] >> How do I make the git user work like github where, upon attempting to >> get a prompt, the connection is closed? > > I assume you mean that the user's login shell is git-shell. > > You can disable interactive logins by removing the > ~/git-shell-commands/ directory. Unfortunately that doesn't let you > customize the message. Perhaps it would make sense to teach shell.c > to look for a > > [shell] > greeting = 'Hi %(username)! You've successfully authenticated, but I do not provide interactive shell access.' > > setting in git's config file. What do you think? > > Thanks, > Jonathan
-- Ethan Reesor (Gmail)