Re: [PATCH] Fallback on getpwuid if envar HOME is unset

2012-08-21 Thread Jeff King
On Tue, Aug 21, 2012 at 12:22:18PM -0700, Junio C Hamano wrote: > Conley Owens writes: > > > Yes, that's the upstart I'm referring to. This makes sense. However, it's > > a > > confusing situation to run into. Would a warning about an unset $HOME be > > appropriate? > > Unsetting HOME is an

Re: [PATCH] Fallback on getpwuid if envar HOME is unset

2012-08-21 Thread Junio C Hamano
Conley Owens writes: > Yes, that's the upstart I'm referring to. This makes sense. However, it's a > confusing situation to run into. Would a warning about an unset $HOME be > appropriate? Unsetting HOME is an easy way to skip what is in ~/.gitconfig when helping other people on this list, an

Re: [PATCH] Fallback on getpwuid if envar HOME is unset

2012-08-21 Thread Andreas Schwab
Junio C Hamano writes: > Where do shells (e.g. bash and dash) go when you say "cd" without > parameter when $HOME is unset, for example? $ bash -c 'unset HOME; cd' bash: line 0: cd: HOME not set $ dash -c 'unset HOME; cd' [no output and cwd not changed] POSIX says: If no directory operand

Re: [PATCH] Fallback on getpwuid if envar HOME is unset

2012-08-21 Thread Conley Owens
On Tue, Aug 21, 2012 at 11:22 AM, Junio C Hamano wrote: > Conley Owens writes: > >> On Mon, Aug 20, 2012 at 7:30 PM, Jeff King wrote: >>> On Mon, Aug 20, 2012 at 06:28:57PM -0700, Conley Owens wrote: >>> From f64ba3c908b33a2ea5a5ad1f0e5800af76b82ce9 Mon Sep 17 00:00:00 2001 From: Conle

Re: [PATCH] Fallback on getpwuid if envar HOME is unset

2012-08-21 Thread Junio C Hamano
Conley Owens writes: > On Mon, Aug 20, 2012 at 7:30 PM, Jeff King wrote: >> On Mon, Aug 20, 2012 at 06:28:57PM -0700, Conley Owens wrote: >> >>> From f64ba3c908b33a2ea5a5ad1f0e5800af76b82ce9 Mon Sep 17 00:00:00 2001 >>> From: Conley Owens >>> Date: Mon, 20 Aug 2012 18:23:40 -0700 >>> Subject: [

Re: [PATCH] Fallback on getpwuid if envar HOME is unset

2012-08-21 Thread Conley Owens
On Mon, Aug 20, 2012 at 7:30 PM, Jeff King wrote: > On Mon, Aug 20, 2012 at 06:28:57PM -0700, Conley Owens wrote: > >> From f64ba3c908b33a2ea5a5ad1f0e5800af76b82ce9 Mon Sep 17 00:00:00 2001 >> From: Conley Owens >> Date: Mon, 20 Aug 2012 18:23:40 -0700 >> Subject: [PATCH] Fallback on getpwuid if

Re: [PATCH] Fallback on getpwuid if envar HOME is unset

2012-08-20 Thread Junio C Hamano
Conley Owens writes: > From f64ba3c908b33a2ea5a5ad1f0e5800af76b82ce9 Mon Sep 17 00:00:00 2001 > From: Conley Owens > Date: Mon, 20 Aug 2012 18:23:40 -0700 > Subject: [PATCH] Fallback on getpwuid if envar HOME is unset > > Signed-off-by: Conley Owens > --- We can see you are doing what you clai

Re: [PATCH] Fallback on getpwuid if envar HOME is unset

2012-08-20 Thread Jeff King
On Mon, Aug 20, 2012 at 06:28:57PM -0700, Conley Owens wrote: > From f64ba3c908b33a2ea5a5ad1f0e5800af76b82ce9 Mon Sep 17 00:00:00 2001 > From: Conley Owens > Date: Mon, 20 Aug 2012 18:23:40 -0700 > Subject: [PATCH] Fallback on getpwuid if envar HOME is unset Please drop these lines from the mess