Re: [PATCH v2] untracked-cache: fix subdirectory handling

2015-08-15 Thread Duy Nguyen
First of all, sorry for my long silence. I'm going through my git inbox now. > diff --git a/dir.c b/dir.c > index e7b89fe..314080b 100644 > --- a/dir.c > +++ b/dir.c > @@ -631,6 +631,7 @@ static struct untracked_cache_dir > *lookup_untracked(struct untracked_cache *uc, > memset(d, 0, sizeof

[PATCH v2] untracked-cache: fix subdirectory handling

2015-08-07 Thread David Turner
Previously, some calls lookup_untracked would pass a full path. But lookup_untracked assumes that the portion of the path up to and including to the untracked_cache_dir has been removed. So lookup_untracked would be looking in the untracked_cache for 'foo' for 'foo/bar' (instead of just looking f