Skip to content

Avoid creating superfluous namespaces on Geo secondaries during sync

Nick Thomas requested to merge (removed):fix-geo-add-namespace-weirdness into master

What does this MR do?

When redownloading a repository, Geo creates a superfluous namespace.

At present, given a project root/test-snapshot, a successful redownload gives this result:

repositories/
  root/
    test-snapshot/
    test-snapshot.git/

The test-snapshot directory is empty, but shouldn't be present.

We also have repositories/@failed-geo-sync/root/test-snapshot. I've not looked in any detail into what changes here, but again, it's not sensible to create the full directory before trying to mv the repository over.

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Edited by Nick Thomas

Merge request reports