Re: [PATCH v5] Add an explicit GIT_DIR to the list of excludes
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Jun 8, 2014, 10:17 UTC
- Message-ID
- <CACsJy8AyvkA20mD283=hWp7WFJXBu3-ViXHuS4jtMzz2hpBi2Q@mail.gmail.com>
- In-Reply-To
- <1401912909-29654-1-git-send-email-pasha.bolokhov@gmail.com>
On Thu, Jun 5, 2014 at 3:15 AM, Pasha Bolokhov <pasha.bolokhov@gmail.com> wrote:
> + /* only add it if GIT_DIR does not end with '.git' or '/.git' */
> + if (len < 4 || strcmp(n_git + len - 4, ".git") ||
> + (len > 4 && n_git[len - 5] != '/')) {Hmm.. should we exclude "foobar.git" as well?
-- Duy