summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2023-03-20 16:57:44 +0200
committerJustin Wernick <justin@worthe-it.co.za>2023-03-20 16:57:44 +0200
commit2ab7df378d8cb40775ac0ecd2849fa9966386a2e (patch)
treefb4c5ef0785e121c082dae9f0eca1051d879319b /src/main.rs
parent4aaca79ed12d327328f7650b737cb47e5ed83fa7 (diff)
Use clap to parse paths
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
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()?;
}