When cloning, try to init *before* setting up the path Drop (pijul::commands::clone::RepoPath)

[?]
Jan 13, 2021, 9:25 AM
RGJWLQWBXOOQF5KO3SVDRYNE3T5SAQYBWCCDCKGRZXFXIDBUIXMAC

Dependencies

  • [2] LYTVEPH3 Avoid cloning into an existing path
  • [3] B3QWIGDE Fixing the Git features with the latest Pijul (+ conflicts in Cargo.toml)
  • [4] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).

Change contents

  • edit in pijul/src/commands/clone.rs at line 67
    [2.167]
    [2.167]
    let mut repo = Repository::init(Some(path.clone()))?;
  • edit in pijul/src/commands/clone.rs at line 69
    [2.207][2.207:276]()
    let mut repo = Repository::init(Some(repo_path.0.clone()))?;