On Thu, Aug 12, 2010 at 09:37, Greg Brockman [off-list ref] wrote:
quoted
quoted
* gb/shell-ext (2010-07-28) 3 commits
- Add sample commands for git-shell
- Add interactive mode to git-shell for user-friendliness
- Allow creation of arbitrary git-shell commands
This needs work on Windows because we do not have geteuid(), perhaps just
a compiler flag -Dgeteuid=getuid
I had a submitted a revised patch that just uses HOME, see
http://thread.gmane.org/gmane.comp.version-control.git/152050/focus=152135.
I guess that didn't make it in yet.
Maybe that should be (untested):
char* home = expand_user_path("~");
To avoid duplicating the getenv("HOME") code (e.g. if someone wants to
make a getpwuid fallback in the future).