From: Junio C Hamano Date: Fri, 17 Mar 2017 21:25:32 GMT Subject: Re: [PATCH v3 2/5] setup: allow for prefix to be passed to git commands Message-ID: In-Reply-To: <20170317210031.GA63813@google.com> Brandon Williams writes: > I don't think that prefix can ever have ".." in it. From what I > understand it is always a path from the root of the repository to the > cwd that the git command was invoked by. So in your example prefix > would be "src/". The prefix would be NULL or "", as you will be at the root-level of the working tree when you are running _IN_ the submodule (by recursing into it). Not src/, nor anything with ../ in it, I would think.