Re: [PATCH 076/194] push: add test showing bad interaction of replace refs and submodules
- From
Stefan Beller <sbeller@google.com>
- Date
- Feb 6, 2018, 22:43 UTC
- Message-ID
- <CAGZ79kakYV3aeWcEZDnboLyUodDgE2UU9C4ad8kq8_PRE17HHA@mail.gmail.com>
- In-Reply-To
- <20180206022033.GG7904@genre.crustytoothpaste.net>
On Mon, Feb 5, 2018 at 6:20 PM, brian m. carlson <sandals@crustytoothpaste.net> wrote:
Show 33 quoted lines
> On Mon, Feb 05, 2018 at 03:55:37PM -0800, Stefan Beller wrote: >> The ref subsystem has not been migrated yet to access the object store >> via passed in repository objects. As a result replace when the object store >> tries to access replace refs in a repository other than the_repository >> it produces errors: >> >> error: refs/replace/3afabef75c627b894cccc3bcae86837abc7c32fe does not point to a valid object! >> >> Add a test demonstrating this failure. >> >> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> >> Signed-off-by: Stefan Beller <sbeller@google.com> >> >> squash! push: add test showing bad interaction of replace refs and submodules >> >> replace-objects: evaluate replacement refs without using the object store >> >> Pass DO_FOR_EACH_INCLUDE_BROKEN when iterating over replacement refs >> so that the iteration does not require opening the named objects from >> the object store. This avoids a dependency cycle between object access >> and replace ref iteration. >> >> Moreover the ref subsystem has not been migrated yet to access the object >> store via passed in repository objects. As a result, without this patch >> when the object store tries to access replace refs in a repository other >> than the_repository it produces errors: >> >> error: refs/replace/3afabef75c627b894cccc3bcae86837abc7c32fe does not point to a valid object! >> >> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> >> Signed-off-by: Stefan Beller <sbeller@google.com> > > It appears you have multiple independent commit messages here.
I will drop this patch; it appears as if it was targeted to be part of 006f3f28af (replace-objects: evaluate replacement refs without using the object store, 2017-09-12), which landed.
We can revive this test outside of this long series if we feel inclined.
Thanks for spotting! Stefan