Jonathan Nieder <> writes:

> How about this?
> A patch on top could change the default "git-shell-commands is not
> present" message if that seems worthwhile.


I wonder if rewording the message when git-shell-commmands directory
is not there may be a better first step (which actually could be the
last step)?

That is, showing something like this,

> +printf '%s\n' "Hi $USER! You've successfully authenticated, but I do not"
> +printf '%s\n' "provide interactive shell access."

but rephrased with a reference to "git help shell" for people
preparing their own server when ~/git-shell-commands/ in good order?

Something like

diff --git a/shell.c b/shell.c
index 84b237f..71ff04f 100644
--- a/shell.c
+++ b/shell.c
@@ -162,9 +162,11 @@ int main(int argc, char **argv)
                /* Allow the user to run an interactive shell */
                if (access(COMMAND_DIR, R_OK | X_OK) == -1) {
-                       die("Interactive git shell is not enabled.\n"
+                       die("The user has been recognized as '%s' but "
+                           "interactive git shell is not enabled.\n"
                            "hint: ~/" COMMAND_DIR " should exist "
-                           "and have read and execute access.");
+                           "and have read and execute access.",
+                           get_user_name());
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Reply via email to