Canonicalise the source path when cloning a local source
Dependencies
- [2]
OPC2VAZDWriting an initial config file at initialisation - [3]
SQVWP4LUWhen clone fails, only remove directories we have created (not other directories) - [4]
EUZFFJSOUpdating Pijul with the latest changes in Libpijul - [5]
B3QWIGDEFixing the Git features with the latest Pijul (+ conflicts in Cargo.toml) - [6]
RUBBHYZ7Removing unnecessary async/await - [7]
JL4WKA5PImplement the Sanakirja concurrency model in a cross-process way - [8]
H72JG6HLInit feature; specific .ignore configs - [9]
RGJWLQWBWhen cloning, try to init *before* setting up the path Drop (pijul::commands::clone::RepoPath) - [10]
LYTVEPH3Avoid cloning into an existing path - [*]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting).
Change contents
- replacement in pijul/src/commands/clone.rs at line 75
let mut repo = Repository::init(Some(path), None, Some(&self.remote))?;let remote_normalised: std::borrow::Cow<str> = match remote {crate::remote::RemoteRepo::Local(_) => std::fs::canonicalize(&self.remote)?.to_str().unwrap().to_string().into(),_ => self.remote.as_str().into(),};let mut repo = Repository::init(Some(path), None, Some(&remote_normalised))?;