diff --git a/README.md b/README.md index db113dd..63cdf5f 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,6 @@ ARGS: ## How to install ```bash -git clone https://gitlab.parity.io/General-Beck/cargo-remote.git +git clone https://github.com/sgeisler/cargo-remote cargo install --path cargo-remote/ ``` diff --git a/src/main.rs b/src/main.rs index 716d9d3..ea3405a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -133,8 +133,8 @@ fn main() { .find(|p| p.manifest_path == manifest_path) .map_or_else( || { - error!("No metadata found. Use --manifest_path for execute"); - exit(-2); + info!("No metadata found. Setting the remote dir name like the local. Or use --manifest_path for execute"); + project_dir.file_name().and_then(|x| x.to_str()).unwrap() }, |p| &p.name, );