diff options
author | Justin Wernick <justin@worthe-it.co.za> | 2023-03-20 16:57:44 +0200 |
---|---|---|
committer | Justin Wernick <justin@worthe-it.co.za> | 2023-03-20 16:57:44 +0200 |
commit | 2ab7df378d8cb40775ac0ecd2849fa9966386a2e (patch) | |
tree | fb4c5ef0785e121c082dae9f0eca1051d879319b /src/main.rs | |
parent | 4aaca79ed12d327328f7650b737cb47e5ed83fa7 (diff) |
Use clap to parse paths
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index e02be3e..56cd729 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,8 +62,7 @@ fn run_command(user_input: String) -> Result<ControlFlow<(), ()>, ShackleError> command.arg("advertise-refs"); } - // TODO: This should definitely be part of the arg parsing! - command.arg(&upload_pack_args.directory.trim_matches('\'')); + command.arg(&upload_pack_args.directory); command.spawn()?.wait()?; } @@ -74,8 +73,7 @@ fn run_command(user_input: String) -> Result<ControlFlow<(), ()>, ShackleError> command.arg("--http-backend-info-refs"); } - // TODO: This should definitely be part of the arg parsing! - command.arg(&receive_pack_args.directory.trim_matches('\'')); + command.arg(&receive_pack_args.directory); command.spawn()?.wait()?; } |