On Thu, Jun 5, 2014 at 3:15 AM, Pasha Bolokhov [off-list ref] 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