[RFC PATCH 09/10] submodule: support reading .gitmodules even when it's not checked out

2018-05-14 Thread Antonio Ospite
When the .gitmodules file is not available in the working directory, try using HEAD:.gitmodules from the index. This covers the case when the file is part of the repository but for some reason it is not checked out, for example because of a sparse checkout. This makes it possible to use at least t

Re: [RFC PATCH 09/10] submodule: support reading .gitmodules even when it's not checked out

2018-05-14 Thread Stefan Beller
On Mon, May 14, 2018 at 3:58 AM, Antonio Ospite wrote: > When the .gitmodules file is not available in the working directory, try > using HEAD:.gitmodules from the index. I think HEAD:.gitmodules is different than the index (the former is part of the latest commit, whereas the index could have ch