From: Greg Brockman Date: Mon, 23 Aug 2010 17:42:12 GMT Subject: Re: [PATCH v2] shell: Rewrite documentation and improve error message Message-ID: In-Reply-To: <20100822080359.GB15561@kytes> > -COMMAND_DIR is the path 'git-shell-commands' in the user's home > -directory. The user must have read and execute permissions to the > -directory for it to be useful. > +COMMAND_DIR is the path "$HOME/git-shell-commands". The user must have > +read and execute permissions to the directory in order to execute the > +programs in it. The programs are executed with a cwd of $HOME, and > + is passed to them as a command-line argument. Sorry, I guess I wasn't clear enough with what I meant here. The is actually parsed as a command-line string (so split on spaces respecting quotes), not just passed as a raw command-line argument. >                if (access(COMMAND_DIR, R_OK | X_OK) == -1) { > -                       die("Inteactive git shell is not enabled.\n" > -                           "hint: " COMMAND_DIR " should exist " > +                       die("Interactive git shell is not enabled.\n" > +                           "hint: ~/$COMMAND_DIR should exist " >                            "and have read and execute access."); >                } >                run_shell(); Whoops, I'm not sure why I put a $ here. "hint: ~/" COMMAND_DIR " should exist " is definitely what you want. Other than that, looks fine to me.