Browse Source

Remote path must be absolute

pull/10/head
Dennis Schwerdel 5 years ago
parent
commit
e3ed5f628d
  1. 1
      CHANGELOG.md
  2. 4
      src/cli/mod.rs

1
CHANGELOG.md

@ -8,6 +8,7 @@ This project follows [semantic versioning](http://semver.org).
* [added] Added support for xattrs in fuse mount
* [modified] Also documenting common flags in subcommands
* [modified] Using repository aliases (**conversion needed**)
* [modified] Remote path must be absolute
### v0.3.2 (2017-05-11)

4
src/cli/mod.rs

@ -287,6 +287,10 @@ pub fn run() -> Result<(), ErrorCode> {
}
match args {
Arguments::Init{repo_path, bundle_size, chunker, compression, encryption, hash, remote_path} => {
if ! Path::new(&remote_path).is_absolute() {
error!("The remote path of a repository must be absolute.");
return Err(ErrorCode::InvalidArgs)
}
let mut repo = checked!(Repository::create(repo_path, Config {
bundle_size: bundle_size,
chunker: chunker,

Loading…
Cancel
Save