Re: git-describe considers WC dirty incorrectly when using --git-dir

2015-03-04 Thread Chris Pimlott
On Wed, Mar 4, 2015 at 11:54 AM, Junio C Hamano wrote: > Chris Pimlott writes: > >> folio:text chris$ git --git-dir=../.git describe --always --dirty >> c0edd63-dirty > > I have a feeling that this is not limited to describe at all. With > the --git-dir option, you are telling Git that your

Re: git-describe considers WC dirty incorrectly when using --git-dir

2015-03-04 Thread Junio C Hamano
Chris Pimlott writes: > It seems that git-describe always thinks that working copy is dirty if > you are not in the WC root and you explicitly specify the .git > directory location using --git-dir: > > # set up test repo > folio:~ chris$ mkdir repo && cd repo > folio:repo chris$ mkdir text

git-describe considers WC dirty incorrectly when using --git-dir

2015-03-04 Thread Chris Pimlott
It seems that git-describe always thinks that working copy is dirty if you are not in the WC root and you explicitly specify the .git directory location using --git-dir: # set up test repo folio:~ chris$ mkdir repo && cd repo folio:repo chris$ mkdir text && echo hi > text/hi.txt folio:repo