From: Ævar Arnfjörð Bjarmason Date: Thu, 12 Aug 2010 10:11:51 GMT Subject: Re: What's cooking in git.git (Aug 2010, #02; Wed, 11) Message-ID: In-Reply-To: On Thu, Aug 12, 2010 at 09:37, Greg Brockman wrote: >>> * 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).