Re: Strangeness with git-add and nested repositories

2016-04-28 Thread Andrew J
On Thu, Apr 28, 2016 at 9:48 AM, Junio C Hamano wrote: > Junio C Hamano writes: > When given multiple paths, e.g. "git add A/B/C A/D", it tries to > "optimize" things by first finding common leading directory (in this > case "A/") and doing something slightly different, and I think the > bug Andr

Re: Strangeness with git-add and nested repositories

2016-04-27 Thread Andrew J
Hi Stefan, On Wed, Apr 27, 2016 at 9:08 AM, Stefan Beller wrote: > I think (pure speculation), that it the error is in the context > (repository) switching logic. > What happens if you alter the order, i.e. give testfile first and then > the files in the nested > repos? Interestingly, reversing

Strangeness with git-add and nested repositories

2016-04-27 Thread Andrew J
I've noticed some strangeness with git-add and nested repos. This tar.gz has a reproduction script, parent repo, and nested repo that exhibits the issue: https://drive.google.com/uc?export=download&id=0Bwjufq6oAZMfcGVxZ2dlMElEVlE If you extract the archive and do the following (on linux please, I