The sound distributed version control system

#757 Cannot create partial clone

Closed on February 28, 2023
korrat on February 10, 2023

Pijul fails when trying to create a partial clone using the --path flag. This is presumably caused by the root inode introduced to support monorepos.

Steps to reproduce:

$ pijul clone workspace-repo subdir-repo --path project
Downloading changes [                                                  ] 0/1
           Applying [                                                  ] 0/1
Error: Dependency missing: HCCIKRU3D6N5MNJV5VV6YKZRQSG2TCMDHIOUZ7WZS756CW4K4MOQC

The repository only contains two changes, so far:

$ pijul log
Change EQWKUHTJAAMGP4MPO45ZOH6A2SE6MHBFTVGL5JYSY2LBYJ6JSFXQC
Author: korrat
Date: 2023-02-10 07:03:53.312886335 UTC

    project dir

Change HCCIKRU3D6N5MNJV5VV6YKZRQSG2TCMDHIOUZ7WZS756CW4K4MOQC
Author:
Date: 2023-02-10 07:03:53.312958621 UTC
korrat on February 10, 2023

As an aside, does moving one repository into a subdirectory of another repository work yet? And if so, how would one go about that?

pmeunier added a change on February 28, 2023
C3L2TLQWREYOM3YHL37L7PS74YGLHBEDQRSCVMYIU6HKBEPNN2SAC
main
pmeunier on February 28, 2023

Thanks for the report! This patch fixes it.

Moving a directory into a subdirectory isn’t supported yet. Almost everything is ready to make it work except the actual command line to do it.

I don’t want to do this right now since (1) this is part of a bigger “Pijul for monorepos” project, which I’ll start as soon as people get actual scaling problems with their repos. And (2) this would be a new feature, and I’m trying to get to a releasable state as soon as possible.

pmeunier closed this discussion on February 28, 2023