X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=shell.c;fp=shell.c;h=f0f6c2d3be924e976fe1bbc7e962b8ceaf83f37d;hb=70256a3a6780a9fd181edf0bf0e762eb56637c9c;hp=e07aef4bf2331765deba3a344a2d1641becb4068;hpb=54baefda8c0bbee461a4cd68dca970d92fddced0;p=git.git diff --git a/shell.c b/shell.c index e07aef4bf..f0f6c2d3b 100644 --- a/shell.c +++ b/shell.c @@ -149,8 +149,11 @@ int main(int argc, char **argv) } else if (argc == 1) { /* Allow the user to run an interactive shell */ cd_to_homedir(); - if (access(COMMAND_DIR, R_OK | X_OK) == -1) - die("Sorry, the interactive git-shell is not enabled"); + if (access(COMMAND_DIR, R_OK | X_OK) == -1) { + die("Interactive git shell is not enabled.\n" + "hint: ~/" COMMAND_DIR " should exist " + "and have read and execute access."); + } run_shell(); exit(0); } else if (argc != 3 || strcmp(argv[1], "-c")) {