Skip to content

Conversation

@Leonidas-from-XIV
Copy link
Collaborator

In rev_store.ml we currently try to create the rev-store folder and if it exists then we assume that it is a bare repo. This is not necessarily the case and if the folder is e.g. empty (because a previous init --bare failed) the rev-store is permanently bricked with no way to recover (bar the user removing it).

Currently needs #13297.

Signed-off-by: Marek Kubica <marek@tarides.com>
Signed-off-by: Marek Kubica <marek@tarides.com>
Signed-off-by: Marek Kubica <marek@tarides.com>
Signed-off-by: Marek Kubica <marek@tarides.com>
Signed-off-by: Marek Kubica <marek@tarides.com>
@Leonidas-from-XIV
Copy link
Collaborator Author

Obsoleted by #13396 which does the same thing but does not rely on #13297.

Leonidas-from-XIV added a commit that referenced this pull request Jan 20, 2026
…13396)

In `rev_store.ml` we currently try to create the rev-store folder and if
it exists then we assume that it is a bare repo. This is not necessarily
the case and if the folder is e.g. empty (because a previous `init
--bare` failed) the rev-store is permanently bricked with no way to
recover (bar the user removing it but it is unclear from the error what
the user can do, as `git` points at somewhere else).

Noticed this behavior when pairing on a strange test failure on #13297
with @Alizter and paired with @Sudha247 to create a repro case.

This PR is a variant of #13392 which reproduces the same behavior using
a different approach which does not require the changes from #13297.

Signed-off-by: Marek Kubica <marek@tarides.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant