Re: [PATCH v2] Add an explicit GIT_DIR to the list of excludes

2014-05-22 Thread Eric Sunshine
On Thu, May 22, 2014 at 4:11 PM, Pasha Bolokhov wrote: > diff --git a/t/t2205-add-gitdir.sh b/t/t2205-add-gitdir.sh > new file mode 100755 > index 000..3c6b853 > --- /dev/null > +++ b/t/t2205-add-gitdir.sh > @@ -0,0 +1,61 @@ > +#!/bin/sh > +# > +# Copyright (c) 2014 Pasha Bolokhov > +# > + > +

[PATCH v2] Add an explicit GIT_DIR to the list of excludes

2014-05-22 Thread Pasha Bolokhov
When an explicit '--git-dir' option points to a directory inside the work tree, git treats it as if it were any other directory. In particular, 'git status' lists it as untracked, while 'git add -A' stages the metadata directory entirely Add GIT_DIR to the list of excludes in setup_standard_exclud