Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
cli: improve rad clone
Merged fintohaps opened 11 months ago

This change improves the rad clone command in a few different ways.

The first improvement is to check if the repository already exists before fetching. If it does exist, then there is no need for the fetch to be performed, and can move straight to the checkout.

If the repository does not exist, then the fetch is performed, as per usual. However, it uses a replication factor of 1, so that the fetch finishes as soon as it has the repository in local storage.

The change also improves the output when failures occur while attempting to perform the checkout phase. It will print the failure that occurred and provide a hint message in each case to help debug the failure, or push the caller in the direction of performing the correct action.

This required some changes in test/commands.rs setup. Some tests were using the rad-clone.md to setup a clone, which would have different output if the repository did not need to be fetched. In those cases, the rad method for performing the clone is used instead.

fintohaps opened with revision d8a4deab on base 2b04eabb +213 -85 11 months ago

This change improves the rad clone command in a few different ways.

The first improvement is to check if the repository already exists before fetching. If it does exist, then there is no need for the fetch to be performed, and can move straight to the checkout.

If the repository does not exist, then the fetch is performed, as per usual. However, it uses a replication factor of 1, so that the fetch finishes as soon as it has the repository in local storage.

The change also improves the output when failures occur while attempting to perform the checkout phase. It will print the failure that occurred and provide a hint message in each case to help debug the failure, or push the caller in the direction of performing the correct action.

This required some changes in test/commands.rs setup. Some tests were using the rad-clone.md to setup a clone, which would have different output if the repository did not need to be fetched. In those cases, the rad method for performing the clone is used instead.

fintohaps pushed revision 2 15d3776b on base 5a0a334d +1684 -328 11 months ago

Changes:

  • Rebased on stacked patch
fintohaps pushed revision 3 20e3d6b6 on base 1a67ac18 +213 -85 11 months ago

Rebased

lorenz accepted 11 months ago

Sweet!

did:key:z6MkgFq6...nBGz accepted 11 months ago

LGTM!

did:key:z6MkgFq6...nBGz pushed revision 4 b0459562 on base 059c8045 +213 -85 11 months ago

Rebased.

did:key:z6MkgFq6...nBGz merged revision b0459562 at cc96b9ed 11 months ago